hi,
I working on the dashboard using JS template, the XML template is not loading I get a screen with three block.
here's the javascript code :
odoo.define('hr_dashboard.Dashboard', function (require) {
"use strict";
var AbstractAction = require('web.AbstractAction');var core = require('web.core');
var Dashboard = AbstractAction.extend({
template: 'DashboardMain',});core.action_registry.add('custom_hr_dashboard', Dashboard);
return Dashboard;
});
here's the xml:
Hello odoo
this my first dashboard
here's xml view files which load the JS template:
HR Dashboard
custom_hr_dashboard
name=" Hr Dashboard"
action="hr_dashboard_action"
sequence="-200"/>