From d72c4e2a9586fbcf10ba943e92a8dfc753c7aa73 Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Sun, 14 Sep 2025 22:23:45 +0200 Subject: [PATCH] Allow modifications of incoterm until customer's shipments has been shipped Closes #14203 --- modules/incoterm/CHANGELOG | 1 + modules/incoterm/stock.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/modules/incoterm/CHANGELOG b/modules/incoterm/CHANGELOG index 1ab0957546..f5a22d9323 100644 --- a/modules/incoterm/CHANGELOG +++ b/modules/incoterm/CHANGELOG @@ -1,3 +1,4 @@ +* Allow modifications of incoterm until customer's shipments has been shipped Version 7.6.0 - 2025-04-28 -------------------------- diff --git a/modules/incoterm/stock.py b/modules/incoterm/stock.py index 5ef3a5788e..6e1abffae1 100644 --- a/modules/incoterm/stock.py +++ b/modules/incoterm/stock.py @@ -79,6 +79,10 @@ class ShipmentInReturn(ShipmentMixin, metaclass=PoolMeta): class ShipmentOut(ShipmentMixin, metaclass=PoolMeta): __name__ = 'stock.shipment.out' + @classmethod + def _incoterm_readonly_state(cls): + return Eval('state').in_(['cancelled', 'shipped,' 'done']) + @classmethod def _incoterm_related_party(cls): return Eval('customer'), {'customer'}