Do not enforce empty shipment cost method on cancelled state
Closes #13018
This commit is contained in:
1 parent
2e722731c7
commit
751e549995
1 file changed
+1
-1
@@ -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),
|
||||
()),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user