customer_zone3.xml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <openerp>
  2. <data>
  3. <!-- explicit list view definition -->
  4. <record model="ir.ui.view" id="archives_customer_zone3_list">
  5. <field name="name">客户地区3列表</field>
  6. <field name="model">archives.customer_zone3</field>
  7. <field name="arch" type="xml">
  8. <tree>
  9. <field name="name"/>
  10. <field name="coding"/>
  11. <field name="company_id"/>
  12. <field name="available"/>
  13. </tree>
  14. </field>
  15. </record>
  16. <record model="ir.ui.view" id="archives_customer_zone3_edit">
  17. <field name="name">客户地区3新建</field>
  18. <field name="model">archives.customer_zone3</field>
  19. <field name="arch" type="xml">
  20. <form>
  21. <header>
  22. <field name="id" attrs="{'invisible': True}"/>
  23. <field name="available" attrs="{'invisible': True}"/>
  24. <button name="set_available" string="启用" type="object" class="oe_highlight oe_read_only"
  25. attrs="{'invisible': [('available','==',True)]}"/>
  26. <button name="un_set_available" string="停用" type="object" class="oe_highlight oe_read_only"
  27. attrs="{'invisible': [('available','==',False)]}"/>
  28. </header>
  29. <sheet>
  30. <group name="group_top" col='4'>
  31. <field name="name"/>
  32. <field name="coding"/>
  33. <field name="company_id" options="{'no_open':True,'no_create':True}"/>
  34. </group>
  35. </sheet>
  36. </form>
  37. </field>
  38. </record>
  39. <record model="ir.ui.view" id="customer_zone3_search_view">
  40. <field name="name">archives.customer_zone3.search</field>
  41. <field name="model">archives.customer_zone3</field>
  42. <field name="arch" type="xml">
  43. <search>
  44. <field name="name" filter_domain="['|', ('spell', 'ilike', self), ('name', 'ilike', self)]"/>
  45. <field name="coding"/>
  46. <field name="company_id"/>
  47. </search>
  48. </field>
  49. </record>
  50. <!-- actions opening views on models -->
  51. <record model="ir.actions.act_window" id="archives_customer_zone3_action_window">
  52. <field name="name">客户地区3</field>
  53. <field name="res_model">archives.customer_zone3</field>
  54. <field name="view_mode">tree,form</field>
  55. </record>
  56. <!-- actions -->
  57. <menuitem name="客户地区3" id="archives.menu_customer_zone3" parent="archives_menu_sale"
  58. action="archives_customer_zone3_action_window" sequence="6"/>
  59. </data>
  60. </openerp>