Make cost_sale readonly only in done and cancelled state

issue10827
review383231002
This commit is contained in:
Maxime Richez committed 2021-10-10 22:42:47 +02:00
1 parent 109ad38352
commit 884a65bfd7
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ class ShipmentOut(metaclass=PoolMeta):
'invisible': (
~Eval('cost_edit', False)
| (Eval('cost_method') != 'shipment')),
'readonly': ~Eval('state').in_(['done', 'cancelled']),
'readonly': Eval('state').in_(['done', 'cancelled']),
},
depends=['cost_method', 'state'])