mrp_packaging_qty/views/mrp_mps_views.xml

29 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- We cannot easily inherit the MPS client action view as it is rendered via JS -->
<!-- However, we can add the field to the tree view if it exists or form view -->
<record id="mrp_mps_production_schedule_form_view_inherit_packaging" model="ir.ui.view">
<field name="name">mrp.production.schedule.form.inherit.packaging</field>
<field name="model">mrp.production.schedule</field>
<field name="inherit_id" ref="mrp_mps.mrp_mps_production_schedule_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='warehouse_id']" position="after">
<field name="packaging_id"/>
</xpath>
</field>
</record>
<record id="mrp_mps_search_view_inherit_packaging" model="ir.ui.view">
<field name="name">mrp.production.schedule.search.inherit.packaging</field>
<field name="model">mrp.production.schedule</field>
<field name="inherit_id" ref="mrp_mps.mrp_mps_search_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="after">
<field name="packaging_id"/>
</xpath>
</field>
</record>
</odoo>