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.

28 lines
1.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_res_partner_filter" model="ir.ui.view">
  4. <field name="inherit_id" ref="base.view_res_partner_filter" />
  5. <field name="model">res.partner</field>
  6. <field type="xml" name="arch">
  7. <filter name="type_person" position="before">
  8. <filter
  9. string="All partners"
  10. name="type_relation"
  11. domain="['|',('is_company','=',1),('type','=','contact')]"
  12. />
  13. </filter>
  14. <!-- Default type_person also contains invoice and delivery
  15. addresses for companies (and persons). -->
  16. <filter name="type_person" position="attributes">
  17. <attribute
  18. name="domain"
  19. >[('is_company','=',0),('type','=','contact')]</attribute>
  20. </filter>
  21. <filter name="type_company" position="attributes">
  22. <attribute name="string">Organisations</attribute>
  23. </filter>
  24. </field>
  25. </record>
  26. </odoo>