Allow modifications of incoterm until customer's shipments has been shipped

Closes #14203
This commit is contained in:
Maxime Richez
2025-09-14 22:23:45 +02:00
parent d14e82281d
commit d72c4e2a95
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Allow modifications of incoterm until customer's shipments has been shipped
Version 7.6.0 - 2025-04-28
--------------------------
+4
View File
@@ -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'}