From b49e48e8887459ef4a06f42039a79f314c016b25 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 --- stock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 7f94034956..80ab36a5e6 100644 --- a/stock.py +++ b/stock.py @@ -247,7 +247,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 = {}