From 1b654c08cedbab1ef1027a01b5936c4a5934be76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 22 Jun 2014 16:53:15 +0200 Subject: [PATCH] Internal shipment from_location domain should be child_of Since there is assignation on internal shipment the from_location could be any children of main location. issue3994 review13361002 --- shipment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shipment.py b/shipment.py index 455a84383f..db0b5abc3c 100644 --- a/shipment.py +++ b/shipment.py @@ -1808,7 +1808,8 @@ class ShipmentInternal(Workflow, ModelSQL, ModelView): | ~Eval('from_location') | ~Eval('to_location')), }, domain=[ - ('from_location', '=', Eval('from_location')), + ('from_location', 'child_of', [Eval('from_location', -1)], + 'parent'), ('to_location', '=', Eval('to_location')), ('company', '=', Eval('company')), ],