The patch that allows using view locations must also allow view locations on

cancelled moves.
This commit is contained in:
Albert Cervera i Areny 2016-09-19 08:44:02 +02:00
parent fafba402c9
commit 769f686636
1 changed files with 1 additions and 1 deletions

View File

@ -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'])),
+ ]