mirror of
https://github.com/frappe/books.git
synced 2025-01-12 19:06:38 +00:00
fix: Set name as randomString in getNewDoc
This commit is contained in:
parent
16ad083426
commit
cf1e38f59b
2
index.js
2
index.js
@ -214,7 +214,7 @@ module.exports = {
|
|||||||
async getNewDoc(doctype) {
|
async getNewDoc(doctype) {
|
||||||
let doc = this.newDoc({ doctype: doctype });
|
let doc = this.newDoc({ doctype: doctype });
|
||||||
doc._notInserted = true;
|
doc._notInserted = true;
|
||||||
await doc.setName();
|
doc.name = frappe.getRandomString();
|
||||||
this.addToCache(doc);
|
this.addToCache(doc);
|
||||||
return doc;
|
return doc;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user