Delete open records without warehouse
issue10822 review369891004 (grafted from 427c0d552da2fb149ecc1df1ec6731ebb2bd3ba2) --HG-- branch : 6.0
This commit is contained in:
1 parent
227cfdd2da
commit
a175fa28ee
1 file changed
+2
-1
@@ -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 = {}
|
||||
|
||||
Reference in new issue
Block a user