mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-24 13:21:48 +00:00
57 lines
2.4 KiB
XML
57 lines
2.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<flectra>
|
|
<record id="view_res_partner_filter" model="ir.ui.view">
|
|
<field name="name">partner_manual_rank.view_partner_filter</field>
|
|
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
|
<field name="model">res.partner</field>
|
|
<field type="xml" name="arch">
|
|
<xpath expr="//filter[@name='inactive']" position="before">
|
|
<filter
|
|
string="Customers"
|
|
name="customers"
|
|
domain="[('is_customer', '=', True)]"
|
|
/>
|
|
<filter
|
|
string="Suppliers"
|
|
name="suppliers"
|
|
domain="[('is_supplier', '=', True)]"
|
|
/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="view_res_partner_filter_account" model="ir.ui.view">
|
|
<field name="name">partner_manual_rank.view_partner_filter.account</field>
|
|
<field name="inherit_id" ref="account.res_partner_view_search" />
|
|
<field name="model">res.partner</field>
|
|
<field type="xml" name="arch">
|
|
<filter name="customer" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</filter>
|
|
<filter name="supplier" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</filter>
|
|
</field>
|
|
</record>
|
|
<record id="view_partner_form" model="ir.ui.view">
|
|
<field name="name">partner_manual_rank.view_partner_form</field>
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
<field name="model">res.partner</field>
|
|
<field type="xml" name="arch">
|
|
<xpath expr="//field[@name='child_ids']/kanban/templates" position="before">
|
|
<field name="is_customer" />
|
|
<field name="is_supplier" />
|
|
</xpath>
|
|
<xpath expr="//field[@name='child_ids']/form/sheet" position="inside">
|
|
<field name="is_customer" invisible="1" />
|
|
<field name="is_supplier" invisible="1" />
|
|
</xpath>
|
|
<xpath expr="//group[@name='sale']/field[1]" position="before">
|
|
<field name="is_customer" />
|
|
</xpath>
|
|
<xpath expr="//group[@name='purchase']/field[1]" position="before">
|
|
<field name="is_supplier" />
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</flectra>
|