[FIX] kpi_dashboard: Use getState function

This commit is contained in:
Enric Tobella
2023-05-09 10:24:54 +02:00
parent ce4aa39c2c
commit eb43a24a20

View File

@@ -46,12 +46,11 @@ odoo.define("kpi_dashboard.DashboardController", function (require) {
});
this._super($node, options);
},
_pushState: function (state) {
// eslint-disable-next-line no-param-reassign
state = state || {};
var env = this.model.get(this.handle, {env: true});
getState: function () {
const state = this._super.apply(this, arguments);
const env = this.model.get(this.handle, {env: true});
state.id = env.currentId;
this._super(state);
return state;
},
_addDashboard: function () {
var self = this;