changeset 0723c6b65ee3 in modules/stock_quantity_issue:default
details: 
https://hg.tryton.org/modules/stock_quantity_issue?cmd=changeset&node=0723c6b65ee3
description:
        Delete open records without warehouse

        issue10822
        review369891004
diffstat:

 stock.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 1eea4e21de02 -r 0723c6b65ee3 stock.py
--- a/stock.py  Mon Oct 11 18:40:06 2021 +0200
+++ b/stock.py  Fri Oct 15 19:12:36 2021 +0200
@@ -217,7 +217,8 @@
                 ('company', '=', company.id),
                 ('state', '=', 'open'),
                 ])
-        opens = [i for i in opens if i.warehouse in warehouses]
+        opens = [
+            i for i in opens if i.warehouse in warehouses or not i.warehouse]
         cls.delete(opens)
 
         issues = {}

Reply via email to