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
This commit is contained in:
Cédric Krier committed 2014-06-22 16:53:15 +02:00
1 parent c0545376c4
commit 1b654c08ce
1 file changed
+2 -1
+2 -1
View File
@@ -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')),
],