mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] kpi_dashboard: Use getState function
This commit is contained in:
@@ -46,12 +46,11 @@ odoo.define("kpi_dashboard.DashboardController", function (require) {
|
|||||||
});
|
});
|
||||||
this._super($node, options);
|
this._super($node, options);
|
||||||
},
|
},
|
||||||
_pushState: function (state) {
|
getState: function () {
|
||||||
// eslint-disable-next-line no-param-reassign
|
const state = this._super.apply(this, arguments);
|
||||||
state = state || {};
|
const env = this.model.get(this.handle, {env: true});
|
||||||
var env = this.model.get(this.handle, {env: true});
|
|
||||||
state.id = env.currentId;
|
state.id = env.currentId;
|
||||||
this._super(state);
|
return state;
|
||||||
},
|
},
|
||||||
_addDashboard: function () {
|
_addDashboard: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user