mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
fix: remove empty dn from bulk creation if date filter renders them empty
This commit is contained in:
@@ -156,9 +156,12 @@ def task(doc_name, from_doctype, to_doctype):
|
||||
else:
|
||||
obj = mapper[from_doctype][to_doctype](doc_name)
|
||||
|
||||
obj.flags.ignore_validate = True
|
||||
obj.set_title_field()
|
||||
obj.insert(ignore_mandatory=True)
|
||||
if obj:
|
||||
obj.flags.ignore_validate = True
|
||||
obj.set_title_field()
|
||||
obj.insert(ignore_mandatory=True)
|
||||
|
||||
del obj
|
||||
del frappe.flags.bulk_transaction
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user