Delete open records without warehouse
issue10822 review369891004
This commit is contained in:
1 parent
773e746e65
commit
b49e48e888
1 file changed
+2
-1
@@ -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 = {}
|
||||
|
||||
Reference in new issue
Block a user