Do not enforce empty shipment cost method on cancelled state

Closes #13018
(grafted from af89389ef1162e862980c2f380efc1fd1d760f79)

--HG--
branch : 7.0
This commit is contained in:
Maxime Richez committed 2024-02-22 00:06:28 +01:00
1 parent 6851e0314e
commit 810d800043
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),
()),
],