From a175fa28ee2928d6b226a9f8f4fa5c8e6d2771c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 15 Oct 2021 19:12:36 +0200 Subject: [PATCH] Delete open records without warehouse issue10822 review369891004 (grafted from 427c0d552da2fb149ecc1df1ec6731ebb2bd3ba2) --HG-- branch : 6.0 --- stock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 89bbee28e3..9f3ca40826 100644 --- a/stock.py +++ b/stock.py @@ -241,7 +241,8 @@ class QuantityEarlyPlan(Workflow, ModelSQL, ModelView): ('company', '=', company.id), ('state', '=', 'open'), ]) - opens = [p for p in opens if p.warehouse in warehouses] + opens = [ + p for p in opens if p.warehouse in warehouses or not p.warehouse] cls.delete(opens) plans = {}