mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
19 lines
892 B
Diff
19 lines
892 B
Diff
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:
|