mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG] kpi_dashboard: Migration to 14.0
This commit is contained in:
committed by
Brian McMaster
parent
d8c5f0fc2d
commit
265982fdab
@@ -1,16 +1,16 @@
|
||||
odoo.define("kpi_dashboard.DashboardModel", function(require) {
|
||||
odoo.define("kpi_dashboard.DashboardModel", function (require) {
|
||||
"use strict";
|
||||
|
||||
var BasicModel = require("web.BasicModel");
|
||||
|
||||
var DashboardModel = BasicModel.extend({
|
||||
_fetchRecord: function(record) {
|
||||
_fetchRecord: function (record) {
|
||||
return this._rpc({
|
||||
model: record.model,
|
||||
method: "read_dashboard",
|
||||
args: [[record.res_id]],
|
||||
context: _.extend({}, record.getContext(), {bin_size: true}),
|
||||
}).then(function(result) {
|
||||
}).then(function (result) {
|
||||
record.specialData = result;
|
||||
return result;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user