Odoo modules extending contacts / partners
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.

32 lines
1.2 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_partner_form_inherit_base" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority">18</field>
<field name="arch" type="xml">
<field name="state_id" position="attributes">
<attribute name="attrs">{'readonly':[('country_department_id','!=',False)]}</attribute>
<attribute name="options">{'no_open':1}</attribute>
</field>
<field name="country_department_id" position="attributes">
<attribute name="options">{'no_open':1}</attribute>
</field>
</field>
</record>
<record id="view_res_partner_filter_inherit_base" model="ir.ui.view">
<field name="name">res.partner.view.search.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="priority">18</field>
<field name="arch" type="xml">
<filter name="country_department_groupby" position="after">
<filter name="state_groupby" string="State" context="{'group_by': 'state_id'}" />
</filter>
</field>
</record>
</odoo>