From 884a65bfd7275fc0fe77c2ff62609cce907b052a Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Sun, 10 Oct 2021 22:42:47 +0200 Subject: [PATCH] Make cost_sale readonly only in done and cancelled state issue10827 review383231002 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])