Show location_id in tree view of stock.move.line in raw materials tab
This commit is contained in:
@@ -34,6 +34,21 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</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">
|
<record id="view_move_form" model="ir.ui.view">
|
||||||
<field name="model">stock.move</field>
|
<field name="model">stock.move</field>
|
||||||
<field name="inherit_id" ref="stock.view_move_form" />
|
<field name="inherit_id" ref="stock.view_move_form" />
|
||||||
|
|||||||
Reference in New Issue
Block a user