diff -r e3f459761f77 move.py --- a/trytond/trytond/modules/stock/move.py Fri Sep 09 12:12:25 2016 +0200 +++ b/trytond/trytond/modules/stock/move.py Fri Sep 09 12:13:40 2016 +0200 @@ -796,6 +796,7 @@ locations = Location.search([ ('parent', 'child_of', [x.from_location.id for x in moves]), + ('type', 'not in', ['warehouse', 'view']), ]) else: locations = list(set((m.from_location for m in moves))) @@ -833,6 +834,7 @@ if childs is None: childs = Location.search([ ('parent', 'child_of', [move.from_location.id]), + ('type', 'not in', ['warehouse', 'view']), ]) child_locations[move.from_location] = childs else: