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.
 
 
 
 
 

33 lines
1.5 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- product.template -->
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">product.template.view.form.inherit.cw.stock</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='options']" position="inside">
<span class="d-inline-block">
<field name="catch_weigth_ok"/>
<label class="o_form_label" for="catch_weigth_ok">
Is Catch Weight
<sup class="btn-link p-1">?</sup>
</label>
</span>
</xpath>
<xpath expr="//field[@name='product_tooltip']" position="after">
<field name="cw_uom_id"
invisible="catch_weigth_ok == False"
required="catch_weigth_ok == True"/>
<label for="average_cw_qty"
invisible="catch_weigth_ok == False"
required="catch_weigth_ok ==True"/>
<div name="average_cw_qty" class="o_row"
invisible="catch_weigth_ok == False"
required="catch_weigth_ok == True">
<field name="average_cw_qty" class="oe_inline"/>
</div>
</xpath>
</field>
</record>
</odoo>