Hi All,
I want to rename the Account Entity into 'Organization'. But the relationship panel's label from other entity like Contacts is still Accounts.
I can hard-code the label under any relationships but I want it to be user-friendly of what name they want. I have extended the detail-bottom.js:
Espo.define('custom:views/record/detail-bottom', 'views/record/detail-bottom', function (Dep) {
return Dep.extend({
setupRelationshipPanels: function () {
Dep.prototype.setupRelationshipPanels.call(this);
_.each(this.panelList, function(panel){
if(panel.name === 'accounts'){
panel.label = 'Organizations';
}
});
}
});
});
But i want the panel.label into the custom name of the Accounts. I cant see any option in this.getMetadata() to be of use??? Correct me if im wrong.
Badly need help.
Thanks
I want to rename the Account Entity into 'Organization'. But the relationship panel's label from other entity like Contacts is still Accounts.
I can hard-code the label under any relationships but I want it to be user-friendly of what name they want. I have extended the detail-bottom.js:
Espo.define('custom:views/record/detail-bottom', 'views/record/detail-bottom', function (Dep) {
return Dep.extend({
setupRelationshipPanels: function () {
Dep.prototype.setupRelationshipPanels.call(this);
_.each(this.panelList, function(panel){
if(panel.name === 'accounts'){
panel.label = 'Organizations';
}
});
}
});
});
But i want the panel.label into the custom name of the Accounts. I cant see any option in this.getMetadata() to be of use??? Correct me if im wrong.
Badly need help.
Thanks
Comment