Add issue5847 patch

This commit is contained in:
Raimon Esteve 2016-09-09 12:15:23 +02:00
parent c92c596b64
commit 5186a06fb3
2 changed files with 20 additions and 0 deletions

19
issue5847.diff Normal file
View 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:

1
series
View File

@ -32,3 +32,4 @@ issue5587-stock.diff
issue5587-stock_supply.diff
apm.diff
issue5847.diff