GoodERP
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

103 lines
5.4KB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <!-- 采购变更单视图 -->
  5. <record id="buy_adjust_list" model="ir.ui.view">
  6. <field name="name">buy.adjust.list</field>
  7. <field name="model">buy.adjust</field>
  8. <field name="arch" type="xml">
  9. <list string="采购变更单" decoration-info='state == "draft"' decoration-muted= 'state == "cancel"'>
  10. <field name="date" optional="show"/>
  11. <field name="name" optional="show"/>
  12. <field name="order_id" optional="show"/>
  13. <field name="create_uid" string="制单人" optional="show"/>
  14. <field name="approve_uid" optional="show"/>
  15. <field name="state" optional="show"/>
  16. </list>
  17. </field>
  18. </record>
  19. <record id="buy_adjust_form" model="ir.ui.view">
  20. <field name="name">buy.adjust.form</field>
  21. <field name="model">buy.adjust</field>
  22. <field name="arch" type="xml">
  23. <form string="采购变更单">
  24. <header>
  25. <button name="buy_adjust_done" invisible="state=='done'" string="确认" type="object" class="oe_highlight"/>
  26. <field name="state" widget="statusbar" statusbar_visible="draft,done" statusbar_colors='{"done":"blue"}' readonly="1"/>
  27. </header>
  28. <sheet>
  29. <group>
  30. <group>
  31. <field name="order_id" required="1"
  32. domain="[('state', '=', 'done'), ('type', '=', 'buy')]"
  33. options="{'no_create': True}"
  34. readonly="state != 'draft'"/>
  35. <field name='user_id'
  36. options="{'no_open': True, 'no_create': True}"
  37. readonly="state != 'draft'"/>
  38. </group>
  39. <group>
  40. <field name="date" required="1" readonly="state != 'draft'"/>
  41. </group>
  42. </group>
  43. <field name="line_ids" readonly="state != 'draft'">
  44. <list string="采购变更单行" editable="bottom">
  45. <field name="goods_id" required='1' domain="[('not_buyable','=',False)]" optional="show"/>
  46. <field name="attribute_id"
  47. groups='goods.multi_attrs_groups'
  48. required="using_attribute" readonly="not using_attribute" optional="show"/>
  49. <field name="quantity" sum="合计数量" optional="show"/>
  50. <field name="uom_id" optional="show"/>
  51. <field name="price" optional="show"/>
  52. <field name="price_taxed" groups='buy.in_tax_groups' optional="show"/>
  53. <field name="discount_rate" groups='buy.buy_line_discount_groups' optional="show"/>
  54. <field name="discount_amount" sum="合计折扣额" groups='buy.buy_line_discount_groups' optional="show"/>
  55. <field name="amount" sum="合计金额" optional="show"/>
  56. <field name="tax_rate" groups='buy.in_tax_groups' optional="show"/>
  57. <field name="tax_amount" sum="合计税额" groups='buy.in_tax_groups' optional="show"/>
  58. <field name="subtotal" sum="价税合计的合计" groups='buy.in_tax_groups' optional="show"/>
  59. <field name="note" optional="show"/>
  60. <field name='using_attribute' column_invisible='1'/>
  61. </list>
  62. </field>
  63. <field name="note" placeholder="暂无备注信息"/>
  64. <group>
  65. <group>
  66. <field name="create_uid" readonly="1" string="制单人"/>
  67. <field name="approve_uid" readonly="1"/>
  68. </group>
  69. <group>
  70. <field name="create_date" readonly="1" string="录单时间"/>
  71. <field name="write_date" readonly="1" string="最后修改时间"/>
  72. </group>
  73. </group>
  74. </sheet>
  75. <chatter/>
  76. </form>
  77. </field>
  78. </record>
  79. <record id="buy_adjust_search" model="ir.ui.view">
  80. <field name="name">buy.adjust.search</field>
  81. <field name="model">buy.adjust</field>
  82. <field name="arch" type="xml">
  83. <search string="采购变更单">
  84. <field name="name"/>
  85. <field name="order_id"/>
  86. <field name="state"/>
  87. <field name="create_uid" string="制单人"/>
  88. <field name="approve_uid"/>
  89. <filter name="draft" string="草稿" domain="[('state','=','draft')]"/>
  90. <filter name="done" string="已确认" domain="[('state','=','done')]"/>
  91. <group expand="0" string="分组">
  92. <filter name="by_date" string="单据日期" domain="[]" context="{'group_by':'date:day'}"/>
  93. </group>
  94. </search>
  95. </field>
  96. </record>
  97. </data>
  98. </openerp>
上海开阖软件有限公司 沪ICP备12045867号-1