2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00

fix: Set name field as readOnly when not specified

This commit is contained in:
Faris Ansari 2019-10-30 01:09:07 +05:30
parent 88c84e805b
commit 46ec99199a

View File

@ -31,7 +31,8 @@ module.exports = class BaseMeta extends BaseDocument {
label: frappe._('Name'), label: frappe._('Name'),
fieldname: 'name', fieldname: 'name',
fieldtype: 'Data', fieldtype: 'Data',
required: 1 required: 1,
readOnly: 1
} }
].concat(this.fields); ].concat(this.fields);
} }