partner-contact/partner_capital/views/res_partner_view.xml
2021-10-03 02:11:47 +00:00

51 lines
2.1 KiB
XML

<flectra>
<record id="view_partner_form_capital" model="ir.ui.view">
<field name="name">Partner form with capital info</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//page[@name='sales_purchases']/group" position="inside">
<group
name="capital"
string="Capital"
attrs="{'invisible': [('is_company', '=', False)]}"
>
<field name="capital_amount" />
<field name="capital_currency_id" />
<field name="capital_country_id" />
<field name="turnover_amount" />
<field name="turnover_range_id" />
<field name="company_size" />
</group>
</xpath>
</field>
</record>
<record id="view_res_partner_filter_capital" model="ir.ui.view">
<field name="name">Partner search with capital</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="Capital country"
name="capital_country"
domain="[('is_company', '=', True)]"
context="{'group_by': 'capital_country_id'}"
/>
<filter
string="Turnover"
name="turnover"
domain="[('is_company', '=', True)]"
context="{'group_by': 'turnover_range_id'}"
/>
<filter
string="Company size"
name="company_size"
domain="[('is_company', '=', True)]"
context="{'group_by': 'company_size'}"
/>
</filter>
</field>
</record>
</flectra>