Allow using view locations in cancelled stock moves.

Since changest 29ab3d9bd918 we allow using view locations in draft and staging
moves making it possible to have a warehouse with a view location as main
storage location. But if the user wanted to cancel a shipment with such location
she would have to change the location of all moves before cancelling which is
very annoying.

issue5891
review29531002
This commit is contained in:
Albert Cervera i Areny
2016-10-02 11:00:17 +02:00
parent ec8dbb2559
commit 2d34ff6cfd
+1 -1
View File
@@ -27,7 +27,7 @@ STATES = {
}
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'])),
]