mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-24 05:11:47 +00:00
38 lines
1.5 KiB
XML
38 lines
1.5 KiB
XML
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
<flectra>
|
||
|
<record id="view_partner_form" model="ir.ui.view">
|
||
|
<field name="name">Partner form with employees</field>
|
||
|
<field name="model">res.partner</field>
|
||
|
<field name="inherit_id" ref="base.view_partner_form" />
|
||
|
<field name="arch" type="xml">
|
||
|
<page name="internal_notes" position="inside">
|
||
|
<group>
|
||
|
<group
|
||
|
name="employee_quantity"
|
||
|
string="Employee quantity"
|
||
|
attrs="{'invisible': [('is_company', '=', False)]}"
|
||
|
>
|
||
|
<field name="employee_quantity" />
|
||
|
<field name="employee_quantity_range_id" />
|
||
|
</group>
|
||
|
</group>
|
||
|
</page>
|
||
|
</field>
|
||
|
</record>
|
||
|
<record id="view_res_partner_filter" model="ir.ui.view">
|
||
|
<field name="name">Partner search with employees</field>
|
||
|
<field name="model">res.partner</field>
|
||
|
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
||
|
<field name="arch" type="xml">
|
||
|
<filter name="salesperson" position="after">
|
||
|
<filter
|
||
|
name="employee_quantity"
|
||
|
string="Employee Quantity"
|
||
|
domain="[('is_company','=', True)]"
|
||
|
context="{'group_by': 'employee_quantity_range_id'}"
|
||
|
/>
|
||
|
</filter>
|
||
|
</field>
|
||
|
</record>
|
||
|
</flectra>
|