Hi,
I need to create custom Invoice entity record view. I need to add a button under 3 dots (see in the picture). In clientDefs/Invoice.json I added:
client/modules/accouting/src/views/invoice/record/detail.js contains this code:
but it didn't work. If I do the same e.g. in Account entity everything works fine. Does anyone know why this might not work in Invoice entity?
I need to create custom Invoice entity record view. I need to add a button under 3 dots (see in the picture). In clientDefs/Invoice.json I added:
Code:
"recordViews": {
"detail": "accouting:views/invoice/record/detail"
}
Code:
Espo.define('accouting:views/invoice/record/detail', 'views/record/detail', function (Dep) {
return Dep.extend({
setup: function() {
Dep.prototype.setup.call(this);
this.dropdownItemList.push({
name: 'Export to Accounting',
label: 'exportToAccounting',
style: 'default'
});
},
afterRender: function() {
Dep.prototype.afterRender.call(this);
},
});
});

Comment