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

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

(cherry picked from commit 22290c2694)

Co-authored-by: HarryPaulo <paulo_fabris@hotmail.com>
This commit is contained in:
mergify[bot]
2023-04-25 20:05:13 +05:30
committed by GitHub
parent 5045ad6be6
commit 29aa4a0222

View File

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