class_price.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <openerp>
  2. <data>
  3. <record model="ir.ui.view" id="archives_class_price_list">
  4. <field name="name">分类价列表</field>
  5. <field name="model">archives.class_price</field>
  6. <field name="arch" type="xml">
  7. <tree>
  8. <field name="name"/>
  9. <field name="coding"/>
  10. <field name="price_type_id"/>
  11. <field name="execute_date"/>
  12. <field name="company_id"/>
  13. <field name="department_id"/>
  14. <field name="bill_state" options="{'no_open':True,'no_create':True}"/>
  15. <!-- <field name="store_id" options="{'no_open':True,'no_create':True}"/>-->
  16. <!-- <field name="in_store_type_id" options="{'no_open':True,'no_create':True}"/>-->
  17. <!-- <field name="company_id" options="{'no_open':True,'no_create':True}"/>-->
  18. <!-- <field name="department_id" options="{'no_open':True,'no_create':True}"/>-->
  19. </tree>
  20. </field>
  21. </record>
  22. <record model="ir.ui.view" id="archives_class_price_edit">
  23. <field name="name">分类价新建</field>
  24. <field name="model">archives.class_price</field>
  25. <field name="arch" type="xml">
  26. <form>
  27. <header>
  28. <field name="id" attrs="{'invisible': True}"/>
  29. <field name="can_check" attrs="{'invisible': True}"/>
  30. <field name="can_uncheck" attrs="{'invisible': True}"/>
  31. <field name="can_finish" attrs="{'invisible': True}"/>
  32. <field name="can_unfinish" attrs="{'invisible': True}"/>
  33. <field name="can_nullify" attrs="{'invisible': True}"/>
  34. <field name="can_un_nullify" attrs="{'invisible': True}"/>
  35. <field name="bill_state" readonly="1" attrs="{'invisible': [('id', '==', False)]}"/>
  36. <button name="check" string="审核" type="object" class="oe_highlight oe_read_only"
  37. attrs="{'invisible': ['|','|',('can_check','==',False),('bill_state', '!=', 1),('id', '==', False)]}"/>
  38. <button name="un_check" string="撤销" type="object"
  39. class="oe_highlight oe_read_only"
  40. attrs="{'invisible': ['|',('can_uncheck','==',False),('bill_state', '!=', 10)]}"/>
  41. <button name="finish" string="完毕" type="object"
  42. class="oe_highlight oe_read_only"
  43. attrs="{'invisible': ['|',('can_finish','==',False),('bill_state', '!=', 10)]}"/>
  44. <button name="un_finish" string="撤销完毕" type="object"
  45. class="oe_highlight oe_read_only"
  46. attrs="{'invisible': ['|',('can_unfinish','==',False),('bill_state', '!=', 20)]}"/>
  47. <button name="nullify" string="作废" type="object"
  48. class="oe_highlight oe_read_only"
  49. attrs="{'invisible': ['|',('can_nullify','==',False),('bill_state', '!=', 1)]}"/>
  50. <button name="un_nullify" string="撤销作废" type="object"
  51. class="oe_highlight oe_read_only"
  52. attrs="{'invisible': ['|',('can_un_nullify','==',False),('bill_state', '!=', -1)]}"/>
  53. <button name="print_quotation" string="打印" type="object" class="btn-primary"
  54. attrs="{'invisible': [('id', '==', False)]}"/>
  55. <button name="do_customer_setting" string="个性设置" type="object"
  56. attrs="{'invisible': [('bill_state', '!=', 1)]}"/>
  57. </header>
  58. <sheet>
  59. <group name="group_top" string="分类价" col="4">
  60. <field name="name"/>
  61. <field name="coding"/>
  62. <field name="price_type_id" options="{'no_open':True,'no_create':True}"/>
  63. <field name="execute_date"/>
  64. <field name="company_id" options="{'no_open':True,'no_create':True}"/>
  65. <field name="department_id" options="{'no_open':True,'no_create':True}"/>
  66. </group>
  67. <notebook>
  68. <page string="分类价信息">
  69. <div>
  70. <button name="set_origin_price" string="赋值原价" type="object"
  71. class="oe_highlight oe_edit_only"/>
  72. <button name="adjust_price" string="调价" type="object"
  73. class="oe_highlight oe_edit_only"/>
  74. <button name="reset" string="清零" type="object"
  75. class="oe_highlight oe_edit_only"/>
  76. </div>
  77. <field name="detail" mode="tree">
  78. <form>
  79. <group col="4">
  80. <field name="goods_id" options="{'no_open':True,'no_create':True}"/>
  81. <field name="price"/>
  82. <field name="origin_price"/>
  83. <field name="adjust_price"/>
  84. </group>
  85. </form>
  86. <tree string="库存上下限明细" editable="bottom">
  87. <field name="goods_id" options="{'no_open':True,'no_create':True}"/>
  88. <field name="price"/>
  89. <field name="origin_price"/>
  90. <field name="adjust_price"/>
  91. </tree>
  92. </field>
  93. </page>
  94. </notebook>
  95. </sheet>
  96. </form>
  97. </field>
  98. </record>
  99. <record model="ir.ui.view" id="class_price_search_view">
  100. <field name="name">分类价.search</field>
  101. <field name="model">archives.class_price</field>
  102. <field name="arch" type="xml">
  103. <search>
  104. <field name="name"/>
  105. <filter name="not_checked_bill" string="未审核"
  106. domain="[('bill_state', '=', 1)]"/>
  107. <filter name="checked_bill" string="已审核"
  108. domain="[('bill_state', '=', 10)]"/>
  109. <filter name="finished_bill" string="已完毕"
  110. domain="[('bill_state', '=', 20)]"/>
  111. <group string="Group By">
  112. <filter name="by_bill_state" string="单据状态"
  113. context="{'group_by': 'bill_state'}"/>
  114. </group>
  115. </search>
  116. </field>
  117. </record>
  118. <record model="ir.actions.act_window" id="archives_class_price_action_window">
  119. <field name="name">分类价</field>
  120. <field name="res_model">archives.class_price</field>
  121. <field name="view_mode">tree,form</field>
  122. </record>
  123. <menuitem name="分类价" id="archives.menu_class_price" parent="archives_menu_sale"
  124. action="archives_class_price_action_window" sequence="2"/>
  125. </data>
  126. </openerp>