From cf1e38f59b16fbd3a2afaf33944644aaafb6fe88 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 2 Dec 2019 17:51:18 +0530 Subject: [PATCH] fix: Set name as randomString in getNewDoc --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; },