I'm trying to override client/modules/crm/res/templates/lead/convert.tpl
I have added
to custom/Espo/Custom/Resources/metadata/clientDefs/Lead.json
I have tried "views" and "recordViews" (not sure what is the difference to tell the truth), also both "custom:views/lead/convert" and "custom:lead/convert"
Then I added client/custom/src/views/lead/convert.js with following content:
And finally the template itself to client/custom/res/templates/lead/convert.tpl with some dummy content. Also tried custom/Espo/Custom/Resources/templates/lead/convert.tpl
The rewrite does not work. Any advice is appreciated. Thank you.
I have added
Code:
"views": {
"convert": "custom:views/lead/convert"
}
I have tried "views" and "recordViews" (not sure what is the difference to tell the truth), also both "custom:views/lead/convert" and "custom:lead/convert"
Then I added client/custom/src/views/lead/convert.js with following content:
Code:
Espo.define('custom:views/lead/convert', 'views/lead/convert', function (Dep) {
return Dep.extend({
template: 'custom:views/lead/convert',
setup: function () {
Dep.prototype.setup.call(this);
},
afterRender: function () {
Dep.prototype.afterRender.call(this);
}
});
});
The rewrite does not work. Any advice is appreciated. Thank you.

Comment