mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-09 21:37:38 +00:00
Merge pull request #49818 from rohitwaghchaure/fixed-ignore-orders
fix: ignore orders in mps
This commit is contained in:
@@ -224,6 +224,9 @@ class MasterProductionSchedule(Document):
|
||||
if ignore_orders:
|
||||
names = [name for name in names if name not in ignore_orders]
|
||||
|
||||
if not names:
|
||||
return []
|
||||
|
||||
query = query.where(doctype.parent.isin(names))
|
||||
|
||||
return query.run(as_dict=True)
|
||||
|
||||
Reference in New Issue
Block a user