From daf3100de6cb645bc3ab7a736c5f370d5a622937 Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Thu, 5 Oct 2023 13:33:29 +0200 Subject: [PATCH] Set inventory moves readonly for picked customer shipment Closes #12613 (grafted from e5736b1058c49e0789188d1171cb6fa9506a2143) --HG-- branch : 6.0 --- modules/stock/shipment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/stock/shipment.py b/modules/stock/shipment.py index a929dec67e..9f900d3fcc 100644 --- a/modules/stock/shipment.py +++ b/modules/stock/shipment.py @@ -1011,7 +1011,8 @@ class ShipmentOut(ShipmentAssignMixin, Workflow, ModelSQL, ModelView): ], states={ 'readonly': Eval('state').in_( - ['draft', 'assigned', 'packed', 'done', 'cancelled']), + ['draft', 'assigned', 'picked', 'packed', 'done', + 'cancelled']), 'invisible': ( Eval('warehouse_storage') == Eval('warehouse_output')), },