Merge pull request #15238 from rohitwaghchaure/customer-added-id-override-while-creating-records
fix: record name creating based on naming series and not as per the user input
This commit is contained in:
commit
a3c3699a79
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ class Importer:
|
|||
new_doc = frappe.new_doc(self.doctype)
|
||||
new_doc.update(doc)
|
||||
|
||||
if (meta.autoname or "").lower() != "prompt":
|
||||
if not doc.name and (meta.autoname or "").lower() != "prompt":
|
||||
# name can only be set directly if autoname is prompt
|
||||
new_doc.set("name", None)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue