summaryrefslogtreecommitdiff
path: root/addons/web_dashboard/static/src/js/dashboard.js
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-01-10 16:45:00 +0100
committerFabien Meghazi <fme@openerp.com>2012-01-10 16:45:00 +0100
commit652e845321aaf049b87d05830605d1f41a1d68b3 (patch)
treef7092d82ec47cd71f844774efaedb26381e53ddc /addons/web_dashboard/static/src/js/dashboard.js
parent0a08bf26e755a460be65df287552cc540021ddd8 (diff)
[IMP] Refactored Dataset#read_ids usage
bzr revid: fme@openerp.com-20120110154500-466y26mkyb947nze
Diffstat (limited to 'addons/web_dashboard/static/src/js/dashboard.js')
-rw-r--r--addons/web_dashboard/static/src/js/dashboard.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js
index 2ac6c68cff5..c853fa4739f 100644
--- a/addons/web_dashboard/static/src/js/dashboard.js
+++ b/addons/web_dashboard/static/src/js/dashboard.js
@@ -373,8 +373,8 @@ openerp.web_dashboard.Widget = openerp.web.View.extend(/** @lends openerp.web_da
},
start: function () {
this._super();
- return new openerp.web.DataSet(this, 'res.widget').read_ids(
- [this.widget_id], ['title'], this.on_widget_loaded);
+ var ds = new openerp.web.DataSet(this, 'res.widget');
+ return ds.read_ids([this.widget_id], ['title']).then(this.on_widget_loaded);
},
on_widget_loaded: function (widgets) {
var widget = widgets[0];