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.
 
 
 
 
 

40 lines
2.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherit stock move line form view to add catch weight fields-->
<record id="view_move_line_form" model="ir.ui.view">
<field name="name">stock.move.line.view.form.inherit.cw.stock</field>
<field name="model">stock.move.line</field>
<field name="inherit_id" ref="stock.view_move_line_form"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('o_row')]" position="after">
<label for="cw_qty_done" string="CW Quantity Done"/>
<div class="o_row">
<field name="cw_hide" invisible="1"/>
<field name="cw_qty_done"
attrs="{'invisible':[('cw_hide', '=', False)]}"/>
<field name="cw_uom_id" options="{'no_create': True}"
string="CW Uom"
attrs="{'invisible':[('cw_hide', '=', False)]}"/>
<field name="category_id" invisible="1"/>
</div>
</xpath>
</field>
</record>
<!-- Inherit stock move line tree view to add catch weight fields-->
<record id="view_move_line_tree" model="ir.ui.view">
<field name="name">stock.move.line.view.tree.inherit.cw.stock</field>
<field name="model">stock.move.line</field>
<field name="inherit_id" ref="stock.view_move_line_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='qty_done']" position="after">
<field name="cw_hide" invisible="1"/>
<field name="cw_qty_done"
attrs="{'invisible':[('cw_hide', '=', False)]}"/>
<field name="cw_uom_id" options="{'no_create': True}"
string="CW Uom"
attrs="{'invisible':[('cw_hide', '=', False)]}"/>
<field name="category_id" invisible="1"/>
</xpath>
</field>
</record>
</odoo>