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.
|
|
<odoo> <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> </odoo>
|