mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-24 13:21:48 +00:00
41 lines
1.5 KiB
XML
41 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
|
|
<record model="ir.ui.view" id="view_partner_form_job_position">
|
|
<field name="name">Partner form with job position</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="function" position="before">
|
|
<field name="job_position_id"
|
|
attrs="{'invisible': [('is_company','=', True)]}"
|
|
options='{"no_open": True}'/>
|
|
</field>
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='function']"
|
|
position="before">
|
|
<field name="is_company" invisible="True"/>
|
|
<field name="job_position_id"
|
|
attrs="{'invisible': [('is_company','=', True)]}"
|
|
options='{"no_open": True}'/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="view_res_partner_filter_job_position">
|
|
<field name="name">Partner search with job position</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/>
|
|
<field name="arch" type="xml">
|
|
<field name="category_id" position="after">
|
|
<field name="job_position_id"/>
|
|
</field>
|
|
<filter name="salesperson" position="after">
|
|
<filter string="Job position"
|
|
domain="[('is_company','=', True)]"
|
|
context="{'group_by': 'job_position_id'}"/>
|
|
</filter>
|
|
</field>
|
|
</record>
|
|
|
|
</flectra>
|