This commit is contained in:
yuri
2018-01-23 13:40:39 +02:00
parent d72884a0e4
commit cd2e3eec08
3 changed files with 11 additions and 4 deletions
@@ -80,8 +80,9 @@
"isInternal": false,
"isGlobal": false
},
"User": {
"gender": false
"Email": {
"inboundEmails": false,
"emailAccounts": false
}
}
},
@@ -113,6 +114,9 @@
"edit": "no"
},
"leads": false
},
"User": {
"gender": false
}
}
},
+3 -1
View File
@@ -67,7 +67,9 @@ Espo.define('views/role/modals/add-field', 'views/modal', function (Dep) {
var d = fields[field];
if (field in this.options.ignoreFieldList) return;
if (d.disabled) return;
if (this.getMetadata().get(['app', this.options.type, 'mandatory', 'scopeFieldLevel', this.scope, field]) !== null) {
return;
}
fieldList.push(field);
}, this);
+2 -1
View File
@@ -512,7 +512,8 @@ Espo.define('views/role/record/table', 'view', function (Dep) {
this.createView('addField', 'views/role/modals/add-field', {
scope: scope,
ignoreFieldList: ignoreFieldList
ignoreFieldList: ignoreFieldList,
type: this.type
}, function (view) {
view.render();