From fafba402c92381557654b05aa67af0387856dcf7 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Fri, 2 Sep 2016 12:45:12 +0200 Subject: [PATCH] Add issue5847 patch --- issue5847.diff | 19 +++++++++++++++++++ series | 1 + 2 files changed, 20 insertions(+) create mode 100644 issue5847.diff diff --git a/issue5847.diff b/issue5847.diff new file mode 100644 index 0000000..dde01f5 --- /dev/null +++ b/issue5847.diff @@ -0,0 +1,19 @@ +diff -r 85075f5d13d9 move.py +--- a/trytond/trytond/modules/stock/move.py Fri Sep 02 12:37:52 2016 +0200 ++++ b/trytond/trytond/modules/stock/move.py Fri Sep 02 12:40:48 2016 +0200 +@@ -795,6 +795,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))) +@@ -824,6 +825,7 @@ + if with_childs: + childs = Location.search([ + ('parent', 'child_of', [move.from_location.id]), ++ ('type', 'not in', ['warehouse', 'view']), + ]) + else: + childs = [move.from_location] diff --git a/series b/series index ceb0fd2..055dfd9 100644 --- a/series +++ b/series @@ -115,3 +115,4 @@ issue5587-stock_supply.diff issue5587-stock.diff account_payment_clearing-set_party.diff issue4912.diff +issue5847.diff