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.
34 lines
1.2 KiB
34 lines
1.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="view_partner_form_employees">
|
|
<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">
|
|
<field name="phone" position="before">
|
|
<field name="employees_range" placeholder="Employees range"
|
|
attrs="{'invisible': [('is_company', '=', False)]}"
|
|
options='{"no_open": True}'/>
|
|
<field name="employees_number"
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_res_partner_filter_employees">
|
|
<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 string="Salesperson" position="after">
|
|
<filter string="Emplooyees"
|
|
domain="[('is_company','=', True)]"
|
|
context="{'group_by': 'employees_range'}"/>
|
|
</filter>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|