The patch that allows using view locations must also allow view locations on
cancelled moves.
This commit is contained in:
parent
fafba402c9
commit
769f686636
|
@ -34,7 +34,7 @@ diff -r a698c3447267 trytond/trytond/modules/stock/move.py
|
|||
}
|
||||
DEPENDS = ['state']
|
||||
+LOCATION_DOMAIN = [
|
||||
+ If(Eval('state').in_(['staging', 'draft']),
|
||||
+ If(Eval('state').in_(['staging', 'draft', 'cancel']),
|
||||
+ ('type', 'not in', ['warehouse']),
|
||||
+ ('type', 'not in', ['warehouse', 'view'])),
|
||||
+ ]
|
||||
|
|
Loading…
Reference in New Issue