|
@ -1,10 +1,9 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<!-- © 2015 Antiun Ingenieria S.L. - Javier Iniesta |
|
|
<!-- © 2015 Antiun Ingenieria S.L. - Javier Iniesta |
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> |
|
|
<openerp> |
|
|
|
|
|
<data> |
|
|
|
|
|
|
|
|
<odoo> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_form_sector"> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_form_sector"> |
|
|
<field name="name">Partner form with sector</field> |
|
|
<field name="name">Partner form with sector</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="base.view_partner_form"/> |
|
|
<field name="inherit_id" ref="base.view_partner_form"/> |
|
@ -17,9 +16,9 @@ |
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
|
</field> |
|
|
</field> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_tree_sector"> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_tree_sector"> |
|
|
<field name="name">Partner tree with sector</field> |
|
|
<field name="name">Partner tree with sector</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="base.view_partner_tree"/> |
|
|
<field name="inherit_id" ref="base.view_partner_tree"/> |
|
@ -29,9 +28,9 @@ |
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
|
</field> |
|
|
</field> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_res_partner_filter_sector"> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_res_partner_filter_sector"> |
|
|
<field name="name">Partner search with sector</field> |
|
|
<field name="name">Partner search with sector</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
|
@ -42,13 +41,13 @@ |
|
|
filter_domain="['|',('sector_id','ilike',self), |
|
|
filter_domain="['|',('sector_id','ilike',self), |
|
|
('secondary_sector_ids','ilike',self)]"/> |
|
|
('secondary_sector_ids','ilike',self)]"/> |
|
|
</field> |
|
|
</field> |
|
|
<filter string="Salesperson" position="after"> |
|
|
|
|
|
<filter string="Sector" |
|
|
|
|
|
|
|
|
<filter name="salesperson" position="after"> |
|
|
|
|
|
<filter name="sector" |
|
|
|
|
|
string="Sector" |
|
|
domain="[('is_company','=', True)]" |
|
|
domain="[('is_company','=', True)]" |
|
|
context="{'group_by': 'sector_id'}"/> |
|
|
context="{'group_by': 'sector_id'}"/> |
|
|
</filter> |
|
|
</filter> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
</data> |
|
|
|
|
|
</openerp> |
|
|
|
|
|
|
|
|
</odoo> |