|
@ -15,6 +15,14 @@ |
|
|
<field name="secondary_sector_ids" widget="many2many_tags" |
|
|
<field name="secondary_sector_ids" widget="many2many_tags" |
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
|
</field> |
|
|
</field> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='title']" position="after"> |
|
|
|
|
|
<field name="is_company" invisible="1"/> |
|
|
|
|
|
<field name="sector_id" placeholder="Sector" |
|
|
|
|
|
options='{"no_open": True}' |
|
|
|
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
|
|
|
|
<field name="secondary_sector_ids" widget="many2many_tags" |
|
|
|
|
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
|
|
|
|
</xpath> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
@ -50,4 +58,51 @@ |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Views activated for group_use_partner_sector_for_person --> |
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_form_sector_person"> |
|
|
|
|
|
<field name="name">Partner form with sector</field> |
|
|
|
|
|
<field name="model">res.partner</field> |
|
|
|
|
|
<field name="inherit_id" ref="partner_sector.view_partner_form_sector"/> |
|
|
|
|
|
<field name="groups_id" eval="[(4, ref('partner_sector.group_use_partner_sector_for_person'))]"/> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
|
|
|
<field name="sector_id" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'invisible': 0}</attribute> |
|
|
|
|
|
</field> |
|
|
|
|
|
<field name="secondary_sector_ids" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'invisible': 0}</attribute> |
|
|
|
|
|
</field> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='sector_id']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'invisible': 0}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='secondary_sector_ids']" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'invisible': 0}</attribute> |
|
|
|
|
|
</xpath> |
|
|
|
|
|
</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_tree_sector_person"> |
|
|
|
|
|
<field name="name">Partner tree with sector</field> |
|
|
|
|
|
<field name="model">res.partner</field> |
|
|
|
|
|
<field name="inherit_id" ref="partner_sector.view_partner_tree_sector"/> |
|
|
|
|
|
<field name="groups_id" eval="[(4, ref('partner_sector.group_use_partner_sector_for_person'))]"/> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
|
|
|
<field name="sector_id" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'invisible': 0}</attribute> |
|
|
|
|
|
</field> |
|
|
|
|
|
</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_res_partner_filter_sector_person"> |
|
|
|
|
|
<field name="name">Partner search with sector</field> |
|
|
|
|
|
<field name="model">res.partner</field> |
|
|
|
|
|
<field name="inherit_id" ref="partner_sector.view_res_partner_filter_sector"/> |
|
|
|
|
|
<field name="groups_id" eval="[(4, ref('partner_sector.group_use_partner_sector_for_person'))]"/> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
|
|
|
<filter name="sector" position="attributes"> |
|
|
|
|
|
<attribute name="domain"/> |
|
|
|
|
|
</filter> |
|
|
|
|
|
</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
</odoo> |
|
|
</odoo> |