|
|
@ -1,7 +1,7 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<odoo> |
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_form_employees"> |
|
|
|
<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"/> |
|
|
@ -17,19 +17,20 @@ |
|
|
|
</group> |
|
|
|
</page> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_res_partner_filter_employees"> |
|
|
|
<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 name="salesperson" position="after"> |
|
|
|
<filter string="Employee Quantity" |
|
|
|
<filter name="employee_quantity" |
|
|
|
string="Employee Quantity" |
|
|
|
domain="[('is_company','=', True)]" |
|
|
|
context="{'group_by': 'employee_quantity_range_id'}"/> |
|
|
|
</filter> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
</record> |
|
|
|
|
|
|
|
</odoo> |