HI there,
I am trying to create a template, but i am having some real trouble to get it
Although I have a
/static/src/xml/funnel_template.xml with
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<templates xml:space="preserve">
<t t-name="crm_funnel_dashboard.Template">
--- my logic ----
</t>
</templates>
</odoo>
and a static/src/js/funnel_widget.js with
/** @odoo-module **/
import { registry } from "@web/core/registry";
import { Component } from "@odoo/owl";
class FunnelTestAction extends Component {
static template = "crm_funnel_dashboard.Template";
}
registry.category("actions").add("crm_funnel_dashboard_tag", FunnelTestAction);
console.log("✅ FunnelTestAction registrado no registry");
and my views/crm_funnel_action.xml
<odoo>
<data>
<!-- Client Action para abrir o funil -->
<record id="action_funnel_dashboard_client" model="ir.actions.client">
<field name="name">Gráfico do Funil</field>
<field name="tag">crm_funnel_dashboard_tag</field>
</record>
<!-- Submenu: Gráfico -->
<menuitem id="menu_funnel_grafico"
name="Gráfico"
parent="crm_sales_unit.menu_funnel_root"
action="action_funnel_dashboard_client"
sequence="20"/>
</data>
</odoo>
and my manifest has
'data': [
'views/crm_funnel_action.xml',
],
'assets': {
'web.assets_backend': [
'crm_sales_unit_dashboard/static/src/js/funnel_widget.js',
'crm_sales_unit_dashboard/static/src/css/funnel.css',
],
'web.assets_qweb': [
'crm_sales_unit_dashboard/static/src/xml/funnel_template.xml',
],
},
my log do not even mention my template being installed, and it is not in the db as a bundle.
Does any one can help me to get this template loaded?
Thx