Initial commit of product_catch_weight for 11.0

This commit is contained in:
Jared Kipe
2018-06-05 11:30:29 -07:00
parent 2f3509e9a4
commit 46d002ddc9
9 changed files with 387 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_production_lot_form_inherit" model="ir.ui.view">
<field name="name">stock.production.lot.form.inherit</field>
<field name="model">stock.production.lot</field>
<field name="inherit_id" ref="stock.view_production_lot_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="after">
<field name="catch_weight_ratio"/>
</xpath>
</field>
</record>
<record id="view_move_line_form_inherit" model="ir.ui.view">
<field name="name">stock.move.line.form.inherit</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="//field[@name='lot_name']" position="after">
<field name="lot_catch_weight_ratio" readonly="1"/>
</xpath>
</field>
</record>
<record id="view_stock_move_line_operation_tree_inherit" model="ir.ui.view">
<field name="name">stock.move.line.operations.tree.inherit</field>
<field name="model">stock.move.line</field>
<field name="inherit_id" ref="stock.view_stock_move_line_operation_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='lot_name']" position="after">
<field name="lot_catch_weight_ratio" invisible="not context.get('show_lots_text')"/>
<field name="lot_catch_weight_ratio_related" invisible="not context.get('show_lots_m2o')"/>
</xpath>
</field>
</record>
</odoo>