2
0
mirror of https://github.com/frappe/books.git synced 2025-02-10 16:08:35 +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;
}
if (readOnly) {
if (readOnly && !this?.doc[fieldname]) {
this.doc.set(fieldname, t`New ${this.schema.label}`);
}
if (this?.doc[fieldname]) {
return;
}