From e4cb95cf024d268e439d09eaf30924995f3b0208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 23 Mar 2017 22:45:29 +0100 Subject: [PATCH] Do not assign consumable on view location It is not allowed to assign remaining consumable on the current location if this location is a view because the domain on location field of move does not allow it. issue6372 review33981002 --- move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move.py b/move.py index 8bf194e993..b0302ae9c8 100644 --- a/move.py +++ b/move.py @@ -761,7 +761,7 @@ class Move(Workflow, ModelSQL, ModelView): to_pick.append((location, available_qty)) needed_qty -= available_qty # Force assignation for consumables: - if self.product.consumable: + if self.product.consumable and self.from_location.type != 'view': to_pick.append((self.from_location, needed_qty)) return to_pick return to_pick