From 2d34ff6cfdf38acd32bb203127f9e9482f9fe8ca Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Sun, 2 Oct 2016 11:00:17 +0200 Subject: [PATCH] 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 --- move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move.py b/move.py index 9b04840705..94e8e11099 100644 --- a/move.py +++ b/move.py @@ -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'])), ]