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.
 
 

48 lines
1.9 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Copyright 2020 Pesol <pedro.gonzalez@pesol.es>
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<record id="view_partner_form" model="ir.ui.view">
<field name="name">view.partner.address.form.extension</field>
<field name="model">res.partner</field>
<field name="priority">100</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='child_ids']/form/sheet/field[@name='lang']"
position="replace"
>
<group>
<group>
<field name="lang" />
</group>
</group>
</xpath>
<!-- HACK https://github.com/odoo/odoo/issues/53738
TODO Remove when fixed -->
<field name="lang" position="after">
<field name="partner_lang" invisible="1"/>
</field>
<field name="child_ids" position="attributes">
<attribute name="context" operation="python_dict" key="default_lang">partner_lang</attribute>
</field>
</field>
</record>
<record id="view_res_partner_filter" model="ir.ui.view">
<field name="name">res.partner.filter.extension</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="arch" type="xml">
<xpath expr="//field[@name='parent_id']" position="after">
<field name="lang" />
</xpath>
<xpath expr="//group[@name='group_by']" position="inside">
<filter
name="language"
string="Language"
context="{'group_by' : 'lang'}"
/>
</xpath>
</field>
</record>
</odoo>