Manage readonly state on Inventory Line

issue5628
review25431002
This commit is contained in:
Cédric Krier committed 2016-06-30 18:55:13 +02:00
1 parent 839b2740d6
commit 690c2f3c46
1 file changed
+4 -1
+4 -1
View File
@@ -224,7 +224,10 @@ class InventoryLine:
domain=[
('product', '=', Eval('product')),
],
depends=['product'])
states={
'readonly': Eval('inventory_state') != 'draft',
},
depends=['product', 'inventory_state'])
@classmethod
def __setup__(cls):