[IMP] stock: readonly for inventoried product

Create an inventory adjustment and select an inventoried product, the
inventoried product should be the only product selectable for inventory
lines.

Task: 1861241
This commit is contained in:
Prakash Prajapati
2018-08-22 17:29:09 +02:00
committed by Arnold Moyaux
parent a754a77bd8
commit 123f1d1588
+1 -1
View File
@@ -160,7 +160,7 @@
<field name="line_ids" string="Inventory Details" context="{'default_location_id': location_id, 'default_product_id': product_id, 'default_prod_lot_id': lot_id, 'default_package_id': package_id, 'default_partner_id': partner_id}" mode="tree,kanban">
<tree string="Inventory Details" editable="bottom" decoration-info="product_qty != theoretical_qty" decoration-danger="theoretical_qty &lt; 0">
<field name="product_tracking" invisible="1"/>
<field name="product_id" domain="[('type','=','product')]"/>
<field name="product_id" domain="[('type','=','product')]" attrs="{'readonly': [('parent.filter', '=', 'product')]}" force_save="1"/>
<field name="product_uom_id" string="UoM" groups="uom.group_uom"/>
<field name="location_id" domain="[('id', 'child_of', parent.location_id)]" groups="stock.group_stock_multi_locations"/>
<field name="prod_lot_id" domain="[('product_id', '=', product_id)]" attrs="{'readonly': [('product_tracking', '=', 'none')]}" context="{'default_product_id': product_id}" groups="stock.group_production_lot"/>