Do not enforce empty shipment cost method on cancelled state

Closes #13018
This commit is contained in:
Maxime Richez committed 2024-02-22 00:06:28 +01:00
1 parent 2e722731c7
commit 751e549995
1 file changed
+1 -1
+1 -1
View File
@@ -80,7 +80,7 @@ class Sale(metaclass=PoolMeta):
('shipment', "On Shipment"),
], "Shipment Cost Method",
domain=[
If(~Eval('carrier') & (Eval('state') != 'draft'),
If(~Eval('carrier') & ~Eval('state').in_(['draft', 'cancelled']),
('shipment_cost_method', '=', None),
()),
],