In odoo.sh, after the successfull upgrade of my DATABASE from odoo16 into odoo18 on a Staging branch, I have changed the js and its related t-template files (to display html into gantt cell) of one of my custom module, and git-commited my changes into this Staging branch. But, my xml-change (xpath) are not applied (and no error displayed at all and nothing in the browser-console).
mycustommodule/static/src/views/event_gantt_renderer_zsb.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="mycustommodule.GanttRenderer.Pill" t-inherit="web_gantt.GanttRenderer.Pill">
<xpath expr="//span[hasclass('o_gantt_pill_title')]" position="replace">
<span class="o_gantt_pill_title text-truncate mx-2" t-out="pill.displayName" />
</xpath>
</t>
</templates>
mycustommodule/__manifest__.py
:
{
'name': "mycustommodule",
""",
'version': '18.0.0.0.3',
'depends': ['event_enterprise','website_event_sale','web_gantt'],
'data': [
'views/event_gantt_js_class_view.xml',
],
'license': 'LGPL-3',
'assets': {
'web.assets_backend_lazy':['mycustommodule/static/src/views/**/*',],
}
}
In odoo.sh, after the successfull upgrade of my DATABASE from odoo16 into odoo18 on a Staging branch, I have changed the js and its related t-template files (to display html into gantt cell) of one of my custom module, and git-commited my changes into this Staging branch. But, my xml-change (xpath) are not applied (and no error displayed at all and nothing in the browser-console).
mycustommodule/static/src/views/event_gantt_renderer_zsb.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="mycustommodule.GanttRenderer.Pill" t-inherit="web_gantt.GanttRenderer.Pill">
<xpath expr="//span[hasclass('o_gantt_pill_title')]" position="replace">
<span class="o_gantt_pill_title text-truncate mx-2" t-out="pill.displayName" />
</xpath>
</t>
</templates>
mycustommodule/__manifest__.py
:
{
'name': "mycustommodule",
""",
'version': '18.0.0.0.3',
'depends': ['event_enterprise','website_event_sale','web_gantt'],
'data': [
'views/event_gantt_js_class_view.xml',
],
'license': 'LGPL-3',
'assets': {
'web.assets_backend_lazy':['mycustommodule/static/src/views/**/*',],
}
}
Share
Improve this question
edited Mar 12 at 7:39
Ahrimann Steiner
asked Mar 12 at 7:29
Ahrimann SteinerAhrimann Steiner
1,3441 gold badge11 silver badges31 bronze badges
1 Answer
Reset to default 0SOLVED: setting this t-name template in the corresponding renderer.js file was missing:
static pillTemplate = "mycustommodule.GanttRenderer.Pill";
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744766066a4592468.html
评论列表(0条)