mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Add issue5847 patch
This commit is contained in:
parent
c92c596b64
commit
5186a06fb3
19
issue5847.diff
Normal file
19
issue5847.diff
Normal file
|
@ -0,0 +1,19 @@
|
|||
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:
|
Loading…
Reference in a new issue