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 = {}