Files
odoo_source/addons/l10n_in/views/uom_uom_views.xml
T
bbh-odoo 48230c4744 [FIX] l10n_in: fix the xpath
Currently, there is traceback while installing the l10n_in module
due to the wrong xpath.

So in this commit, fix the xpath and added the l10n_in_code inside
the uom_ids's tree view instead of uom category.

closes odoo/odoo#70157

Taskid: 2515007
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-05-05 07:18:17 +00:00

25 lines
984 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_uom_form_view_inherit_l10n_in" model="ir.ui.view">
<field name="name">uom.uom.form</field>
<field name="model">uom.uom</field>
<field name="inherit_id" ref="uom.product_uom_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='category_id']" position="after">
<field name="l10n_in_code"/>
</xpath>
</field>
</record>
<record id="product_uom_categ_form_view_inherit_l10n_in" model="ir.ui.view">
<field name="name">uom.category.form</field>
<field name="model">uom.category</field>
<field name="inherit_id" ref="uom.product_uom_categ_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='uom_ids']/tree/field[@name='name']" position="after">
<field name="l10n_in_code"/>
</xpath>
</field>
</record>
</odoo>