sale_view.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" ?>
  2. <openerp>
  3. <data>
  4. <record id="view_sale_exception_tree" model="ir.ui.view">
  5. <field name="name">sale.exception.tree</field>
  6. <field name="model">sale.exception</field>
  7. <field name="arch" type="xml">
  8. <tree string="Sale Exception">
  9. <field name="active"/>
  10. <field name="name"/>
  11. <field name="description"/>
  12. <field name="model"/>
  13. <field name="sequence"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="view_sale_exception_form" model="ir.ui.view">
  18. <field name="name">sale.exception.form</field>
  19. <field name="model">sale.exception</field>
  20. <field name="arch" type="xml">
  21. <form string="Sale Exception Setup">
  22. <group colspan="4" col="2">
  23. <field name="name"/>
  24. <field name="description"/>
  25. </group>
  26. <group col="4" colspan="4" groups="base.group_sale_manager">
  27. <field name="active"/>
  28. <field name="sequence"/>
  29. <group colspan="4" col="2" groups="base.group_system">
  30. <field name="model"/>
  31. <field name="code"/>
  32. </group>
  33. </group>
  34. <group colspan="4" col="2">
  35. <separator string="Affected Sales Orders"/>
  36. <newline/>
  37. <field name="sale_order_ids" nolabel="1" domain="[('state', '=', 'draft')]"/>
  38. </group>
  39. </form>
  40. </field>
  41. </record>
  42. <record id="action_sale_test_tree" model="ir.actions.act_window">
  43. <field name="name">Exception Rules</field>
  44. <field name="res_model">sale.exception</field>
  45. <field name="view_type">form</field>
  46. <field name="view_mode">tree,form</field>
  47. <field name="view_id" ref="view_sale_exception_tree"/>
  48. <field name="context">{'active_test': False}</field>
  49. </record>
  50. <menuitem action="action_sale_test_tree" id="menu_sale_test" parent="base.menu_sale_config_sales" />
  51. <record id="view_order_form" model="ir.ui.view">
  52. <field name="name">sale_exceptions.view_order_form</field>
  53. <field name="model">sale.order</field>
  54. <field name="inherit_id" ref="sale.view_order_form"/>
  55. <field name="arch" type="xml">
  56. <field name="name" position="after">
  57. <group>
  58. <field name="main_exception_id" options='{"no_open": True}'
  59. class="oe_inline" string="Error:"
  60. attrs="{'invisible':[('main_exception_id','=', False)]}"/>
  61. </group>
  62. </field>
  63. <xpath expr="//page[@string='Other Information']/group"
  64. position="inside">
  65. <group name="exception" colspan="2" col="2">
  66. <separator string="Exception" colspan="2"/>
  67. <field name="exception_ids" colspan="2" nolabel="1"/>
  68. </group>
  69. </xpath>
  70. </field>
  71. </record>
  72. <record id="view_order_tree" model="ir.ui.view">
  73. <field name="name">sale_exceptions.view_order_tree</field>
  74. <field name="model">sale.order</field>
  75. <field name="inherit_id" ref="sale.view_order_tree"/>
  76. <field name="arch" type="xml">
  77. <field name="state" position="after">
  78. <field name="main_exception_id"/>
  79. </field>
  80. </field>
  81. </record>
  82. <record id="view_quotation_tree" model="ir.ui.view">
  83. <field name="name">sale_exceptions.view_order_tree</field>
  84. <field name="model">sale.order</field>
  85. <field name="inherit_id" ref="sale.view_quotation_tree"/>
  86. <field name="arch" type="xml">
  87. <field name="state" position="after">
  88. <field name="main_exception_id"/>
  89. </field>
  90. </field>
  91. </record>
  92. <record id="view_sales_order_filter" model="ir.ui.view">
  93. <field name="name">sale_exceptions.view_sales_order_filter</field>
  94. <field name="model">sale.order</field>
  95. <field name="inherit_id" ref="sale.view_sales_order_filter" />
  96. <field name="arch" type="xml">
  97. <filter name="sales" position="after">
  98. <separator orientation="vertical"/>
  99. <filter icon="terp-emblem-important" name="tofix" string="Blocked in draft" domain="[('main_exception_id','!=',False)]"/>
  100. </filter>
  101. </field>
  102. </record>
  103. </data>
  104. </openerp>