diff --git a/stock.py b/stock.py index a6093071be..ec1919bad3 100644 --- a/stock.py +++ b/stock.py @@ -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'])