GoodERP
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

206 lines
9.2KB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <!-- 采购订单视图 -->
  5. <record id="buy_order_list" model="ir.ui.view">
  6. <field name="name">buy.order.list</field>
  7. <field name="model">buy.order</field>
  8. <field name="arch" type="xml">
  9. <list string="采购订单" decoration-info='state == "draft"' decoration-muted='state == "cancel"' decoration-danger='paid_no_goods'>
  10. <field name="date" optional="show"/>
  11. <field name="name" optional="show"/>
  12. <field name="type" optional="hide"/>
  13. <field name="partner_id" optional="show"/>
  14. <field name="details" widget="html" optional="show"/>
  15. <field name="amount" sum="合计" optional="show"/>
  16. <field name='currency_id'
  17. groups='finance.group_multi_currency' optional="show"/>
  18. <field name="state" optional="show"/>
  19. <field name="goods_state" optional="show"/>
  20. <field name="paid_amount" optional="hide"/>
  21. <field name="ref" optional="show"/>
  22. <field name="paid_no_goods" invisible="1"/>
  23. </list>
  24. </field>
  25. </record>
  26. <record id="buy_order_form" model="ir.ui.view">
  27. <field name="name">buy.order.form</field>
  28. <field name="model">buy.order</field>
  29. <field name="arch" type="xml">
  30. <form string="采购订单">
  31. <header>
  32. <button name="buy_order_done" invisible="state=='done'" string="确认" type="object" class="oe_highlight"/>
  33. <button name="buy_order_draft" invisible="state=='draft'" string="撤销" type="object"/>
  34. <field name="state" widget="statusbar" statusbar_visible="draft,done" statusbar_colors='{"done":"blue"}' readonly="1"/>
  35. </header>
  36. <sheet>
  37. <div class="oe_button_box" name="button_box">
  38. <button type="object"
  39. name="action_view_receipt"
  40. class="oe_stat_button"
  41. icon="fa-truck" invisible="state=='draft' or receipt_count==0">
  42. <field name="receipt_count" widget="statinfo" string="入库单" help="Incoming Shipments"/>
  43. <field name="receipt_ids" invisible="1"/>
  44. </button>
  45. <button type="object"
  46. name="action_view_return"
  47. class="oe_stat_button"
  48. icon="fa-truck" invisible="state=='draft'or return_count==0">
  49. <field name="return_count" widget="statinfo" string="退货单" help="Incoming Shipments"/>
  50. <field name="receipt_ids" invisible="1"/>
  51. </button>
  52. <button type="object"
  53. name="action_view_invoice"
  54. class="oe_stat_button"
  55. icon="fa-pencil-square-o" invisible="state=='draft' or invoice_count==0">
  56. <field name="invoice_count" widget="statinfo" string="结算单" help="Vendor Invoice"/>
  57. <field name="invoice_ids" invisible="1"/>
  58. </button>
  59. </div>
  60. <group colspan="2">
  61. <group>
  62. <field name="partner_id" required="1"
  63. domain="[('s_category_id', '!=', False)]"
  64. options="{'no_open': True, 'no_create': True}"
  65. context="{'form_view_ref': 'core.supplier_address_form'}"/>
  66. <field name='contact'/>
  67. <field name='address_id'/>
  68. <field name='user_id'
  69. options="{'no_open': True, 'no_create': True}"/>
  70. <field name="date" required="1"/>
  71. <field name="warehouse_dest_id"/>
  72. <field name="invoice_by_receipt"/>
  73. </group>
  74. <group>
  75. <field name="ref"/>
  76. <field name="planned_date" required="1"/>
  77. <field name="type" widget="radio"/>
  78. <field name="goods_state" readonly="1"/>
  79. <field name='currency_id'
  80. groups='finance.group_multi_currency'/>
  81. <field name="pay_method"/>
  82. <field name="express_type"/>
  83. <field name="term_id"/>
  84. </group>
  85. </group>
  86. <notebook>
  87. <page name="line_ids" string="采购订单行">
  88. <field name="line_ids">
  89. <list string="采购订单行" editable="bottom">
  90. <field name="goods_id" required='1' domain="[('not_buyable','=',False)]" optional="show"/>
  91. <field name="attribute_id"
  92. groups='goods.multi_attrs_groups'
  93. required="using_attribute" readonly="not using_attribute" optional="show"/>
  94. <field name="goods_uos_qty" sum="合计辅助数量"
  95. groups="goods.auxiliary_unit_groups" optional="show"/>
  96. <field name='uos_id' groups='goods.auxiliary_unit_groups' force_save="1" optional="show"/>
  97. <field name="quantity" sum="合计数量" optional="show"/>
  98. <field name="quantity_in" readonly="1" sum="合计已入库数量" optional="show"/>
  99. <field name="uom_id" readonly='1' force_save="1" optional="show"/>
  100. <field name="price" optional="show"/>
  101. <field name="price_taxed" groups='buy.in_tax_groups' optional="show"/>
  102. <field name="discount_rate" groups='buy.buy_line_discount_groups' optional="show"/>
  103. <field name="discount_amount" sum="合计折扣额" groups='buy.buy_line_discount_groups' optional="show"/>
  104. <field name="amount" sum="合计金额" optional="show"/>
  105. <field name="tax_rate" groups='buy.in_tax_groups' optional="show"/>
  106. <field name="tax_amount" sum="合计税额" groups='buy.in_tax_groups' optional="show"/>
  107. <field name="subtotal" sum="价税合计的合计" groups='buy.in_tax_groups' optional="show"/>
  108. <field name="note" optional="show"/>
  109. <field name='using_attribute' column_invisible='1'/>
  110. </list>
  111. </field>
  112. <field name="pay_ids" invisible="invoice_by_receipt">
  113. <list string="Payment Form" editable="bottom" >
  114. <field name="name"
  115. readonly="date_application"
  116. />
  117. <field name="amount_money" sum="合计"
  118. readonly="date_application"
  119. />
  120. <field name="date_application"></field>
  121. <button name="request_payment" type="object"
  122. string="申请付款" invisible="date_application"></button>
  123. </list>
  124. </field>
  125. <field name="note" placeholder="暂无备注信息"/>
  126. <group>
  127. <group>
  128. <field name="discount_amount" groups='buy.buy_discount_groups'/>
  129. <field name="amount"/>
  130. <field name="paid_amount"/>
  131. </group>
  132. <group>
  133. <field name="prepayment" invisible="not invoice_by_receipt"/>
  134. <field name="bank_account_id" invisible="not invoice_by_receipt"/>
  135. <field name="money_order_id" invisible="not invoice_by_receipt"/>
  136. </group>
  137. </group>
  138. <group>
  139. <group>
  140. <field name="create_uid" readonly="1" string="制单人"/>
  141. <field name="approve_uid" readonly="1"/>
  142. </group>
  143. <group>
  144. <field name="create_date" readonly="1" string="录单时间"/>
  145. <field name="write_date" readonly="1" string="最后修改时间"/>
  146. </group>
  147. </group>
  148. </page>
  149. </notebook>
  150. </sheet>
  151. <chatter/>
  152. </form>
  153. </field>
  154. </record>
  155. <record id="buy_order_search" model="ir.ui.view">
  156. <field name="name">buy.order.search</field>
  157. <field name="model">buy.order</field>
  158. <field name="arch" type="xml">
  159. <search string="采购订单">
  160. <field name="name"/>
  161. <field name="type"/>
  162. <field name="partner_id"/>
  163. <field name="goods_id"/>
  164. <field name="state"/>
  165. <field name="goods_state"/>
  166. <field name="create_uid" string="制单人"/>
  167. <field name="approve_uid"/>
  168. <filter name="draft" string="草稿" domain="[('state','=','draft')]"/>
  169. <filter name="done" string="已确认" domain="[('state','=','done')]"/>
  170. <separator/>
  171. <filter name="not in" string="未入库" domain="[('goods_state','=',u'未入库')]"/>
  172. <filter name="part in" string="部分入库" domain="[('goods_state','=',u'部分入库')]"/>
  173. <filter name="all in" string="全部入库" domain="[('goods_state','=',u'全部入库')]"/>
  174. <separator/>
  175. <filter name="buy" string="采购" domain="[('type','=','buy')]"/>
  176. <filter name="return" string="退货" domain="[('type','=','return')]"/>
  177. <separator/>
  178. <filter name="createby" string="我创建的" domain="[('create_uid', '=' ,uid)]"/>
  179. <group expand="0" string="分组">
  180. <filter name="by_partner" string="供应商" domain="[]" context="{'group_by':'partner_id'}"/>
  181. <filter name="by_date" string="单据日期" domain="[]" context="{'group_by':'date:day'}"/>
  182. <filter name="by_plan_date" string="要求交货日期" domain="[]" context="{'group_by':'planned_date:day'}"/>
  183. <filter name="by_state" string="确认状态" domain="[]" context="{'group_by':'state:day'}"/>
  184. <filter name="by_goods_state" string="收货状态" domain="[]" context="{'group_by':'state'}"/>
  185. </group>
  186. </search>
  187. </field>
  188. </record>
  189. <record id="money_order_form_add_buy_order" model="ir.ui.view">
  190. <field name="name">money.order.form</field>
  191. <field name="model">money.order</field>
  192. <field name='inherit_id' ref='money.money_order_form'/>
  193. <field name="arch" type="xml">
  194. <field name="voucher_id" position="after">
  195. <field name="buy_id"
  196. invisible="context.get('default_get', 0)"
  197. domain="[('state','=','done')]"
  198. readonly="state=='draft'"/>
  199. </field>
  200. </field>
  201. </record>
  202. </data>
  203. </openerp>
上海开阖软件有限公司 沪ICP备12045867号-1