changeset 7a3a3ed90242 in modules/stock_supply_production:5.8
details: 
https://hg.tryton.org/modules/stock_supply_production?cmd=changeset&node=7a3a3ed90242
description:
        Do not delete supply requests from other warehouses

        issue10531
        review342561002
        (grafted from 0ab7fd9136f1163446319752ff056ccc73acd1f2)
diffstat:

 production.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r f78d15646031 -r 7a3a3ed90242 production.py
--- a/production.py     Fri Jan 01 16:43:07 2021 +0100
+++ b/production.py     Fri Jul 02 16:50:16 2021 +0200
@@ -54,6 +54,8 @@
                     ('state', '=', 'request'),
                     ('origin', 'like', 'stock.order_point,%'),
                     ])
+            if warehouses:
+                reqs = [r for r in reqs if r.warehouse in warehouses]
             cls.delete(reqs)
 
         if warehouses is None:

Reply via email to