Show location_id in tree view of stock.move.line in raw materials tab

This commit is contained in:
Alexis de Lattre
2021-01-11 19:01:24 +01:00
parent 4076946f48
commit 05ac567c7a

View File

@@ -34,6 +34,21 @@
</field>
</record>
<record id="view_stock_move_lots" model="ir.ui.view">
<field name="model">stock.move</field>
<field name="inherit_id" ref="mrp.view_stock_move_lots" />
<field name="arch" type="xml">
<xpath expr="//field[@name='active_move_line_ids']/tree/field[@name='lot_id']" position="before">
<xpath expr="//field[@name='active_move_line_ids']/tree/field[@name='location_id']" position="move"/>
</xpath>
<xpath expr="//field[@name='active_move_line_ids']/tree/field[@name='location_id']" position="attributes">
<attribute name="invisible">0</attribute>
<attribute name="readonly">1</attribute>
<attribute name="groups">stock.group_stock_multi_locations</attribute>
</xpath>
</field>
</record>
<record id="view_move_form" model="ir.ui.view">
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_form" />