When I create a custom dashboard its showing an error. I am using odoo 16 when I click dashboard menu its showing this error:
here is my xml code:
<record id="custom_dashboard_action" model="ir.actions.client">
<field name="name">Dashboardfield>
<field name="tag">custom_dashboard_tagsfield>
record>
<menuitem name="Project Dashboard" id="custom_dashboard"
action="custom_dashboard_action"/>
and here is js:
odoo.define('project_management_dashboard.dashboard_action', function (require){
"use strict";
var AbstractAction = require('web.AbstractAction');
var core = require('web.core');
var QWeb = core.qweb;
var rpc = require('web.rpc');
var ajax = require('web.ajax');
var CustomDashBoard = AbstractAction.extend({
template: 'CustomDashBoard',
})
core.action_registry.add('custom_dashboard_tags', CustomDashBoard);
return CustomDashBoard;
})