You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.8 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_partner_form_department">
  5. <field name="name">Partner form with department</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <field name="phone" position="before">
  10. <field name="department"
  11. placeholder="Department"/>
  12. </field>
  13. </field>
  14. </record>
  15. <!-- Uncomment this to add a new column to tree view
  16. <record model="ir.ui.view" id="view_partner_tree_department">
  17. <field name="name">Partner tree with department</field>
  18. <field name="model">res.partner</field>
  19. <field name="inherit_id" ref="base.view_partner_tree"/>
  20. <field name="arch" type="xml">
  21. <field name="phone" position="before">
  22. <field name="department"/>
  23. </field>
  24. </field>
  25. </record>
  26. -->
  27. <record model="ir.ui.view" id="view_res_partner_filter_department">
  28. <field name="name">Partner search with department</field>
  29. <field name="model">res.partner</field>
  30. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  31. <field name="arch" type="xml">
  32. <field name="category_id" position="after">
  33. <field name="department"/>
  34. </field>
  35. <filter string="Salesperson" position="after">
  36. <filter string="Department"
  37. domain="[]"
  38. context="{'group_by': 'department'}"/>
  39. </filter>
  40. </field>
  41. </record>
  42. </data>
  43. </openerp>