You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
1.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_partner_form_capital">
<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">
<field name="phone" position="before">
<field name="capital_country" placeholder="Capital country"
attrs="{'invisible': [('is_company', '=', False)]}"
options='{"no_open": True}'/>
<field name="capital_registered"
attrs="{'invisible': [('is_company', '=', False)]}"/>
<field name="turnover_range" placeholder="Turnover range"
attrs="{'invisible': [('is_company', '=', False)]}"
options='{"no_open": True}'/>
<field name="turnover_number"
attrs="{'invisible': [('is_company', '=', False)]}"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_res_partner_filter_capital">
<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 string="Salesperson" position="after">
<filter string="Capital country"
domain="[('is_company', '=', True)]"
context="{'group_by': 'capital_country'}"/>
<filter string="Turnover"
domain="[('is_company', '=', True)]"
context="{'group_by': 'turnover_number'}"/>
</filter>
</field>
</record>
</data>
</openerp>