partner-contact/partner_noncommercial/views/res_partner.xml
2021-03-23 20:36:29 +01:00

29 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<record id="view_res_partner_filter" model="ir.ui.view">
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="model">res.partner</field>
<field type="xml" name="arch">
<filter name="type_person" position="before">
<filter
string="All partners"
name="type_contact"
domain="['|',('is_company','=',1),('type','=','contact')]"
/>
</filter>
<!-- Default type_person also contains invoice and delivery
addresses for companies (and persons). -->
<filter name="type_person" position="attributes">
<attribute
name="domain"
>[('is_company','=',0),('type','=','contact')]</attribute>
</filter>
<filter name="type_company" position="attributes">
<attribute name="string">Organisations</attribute>
</filter>
</field>
</record>
</flectra>