Do not enforce empty shipment cost method on cancelled state
Closes #13018 (grafted from af89389ef1162e862980c2f380efc1fd1d760f79) --HG-- branch : 7.0
This commit is contained in:
1 parent
6851e0314e
commit
810d800043
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