diff --git a/index.js b/index.js index de5bd700..31ef578a 100644 --- a/index.js +++ b/index.js @@ -214,7 +214,7 @@ module.exports = { async getNewDoc(doctype) { let doc = this.newDoc({ doctype: doctype }); doc._notInserted = true; - await doc.setName(); + doc.name = frappe.getRandomString(); this.addToCache(doc); return doc; },