mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
fix: Don't add name field for singles
This commit is contained in:
parent
fa004db117
commit
1f77238cd4
@ -25,7 +25,7 @@ module.exports = class BaseMeta extends BaseDocument {
|
||||
|
||||
setValues(data) {
|
||||
Object.assign(this, data);
|
||||
if (!this.fields.find(df => df.fieldname === 'name')) {
|
||||
if (!this.fields.find(df => df.fieldname === 'name') && !this.isSingle) {
|
||||
this.fields = [
|
||||
{
|
||||
label: frappe._('Name'),
|
||||
|
Loading…
Reference in New Issue
Block a user