mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +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) {
|
setValues(data) {
|
||||||
Object.assign(this, 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 = [
|
this.fields = [
|
||||||
{
|
{
|
||||||
label: frappe._('Name'),
|
label: frappe._('Name'),
|
||||||
|
Loading…
Reference in New Issue
Block a user