fix: respect title_field from doctype to bulk transactions (#34928)

This commit is contained in:
HarryPaulo 2023-04-25 10:43:53 -03:00 committed by GitHub
parent b545e3def0
commit 22290c2694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ def task(doc_name, from_doctype, to_doctype):
obj = mapper[from_doctype][to_doctype](doc_name)
obj.flags.ignore_validate = True
obj.set_title_field()
obj.insert(ignore_mandatory=True)