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.
 
 
 
 
 

21 lines
1.2 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherits the product template view for adding the field for selecting the secondary Uom-->
<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">product.template.view.form.inherit.product.multi.uom</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='uom_po_id']" position="after">
<field name="is_need_secondary_uom" groups="uom.group_uom"/>
<field name="secondary_uom_ids" attrs="{'invisible': [('is_need_secondary_uom', '==', False)]}" groups="uom.group_uom" force_save="1">
<tree name="Secondary">
<field name="secondary_uom_id" force_save="1"/>
<field name="secondary_uom_ratio" attrs="{'column_invisible': True}" force_save="1"/>
<field name="example_ratio" force_save="1"/>
</tree>
</field>
</xpath>
</field>
</record>
</odoo>