2
0
mirror of https://github.com/frappe/books.git synced 2025-02-11 08:28:47 +00:00

fix: row naming issue

This commit is contained in:
18alantom 2022-07-15 13:40:51 +05:30
parent 90e5680df0
commit 02f1b11203

View File

@ -233,8 +233,11 @@ export default {
return; return;
} }
if (readOnly) { if (readOnly && !this?.doc[fieldname]) {
this.doc.set(fieldname, t`New ${this.schema.label}`); this.doc.set(fieldname, t`New ${this.schema.label}`);
}
if (this?.doc[fieldname]) {
return; return;
} }