diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-08-19 00:57:21 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-08-19 00:57:21 +0200 |
| commit | 47e709eb735f0fab8ee53c802e1352ee445d52cc (patch) | |
| tree | ffaf9f86e8ca8f370fb5cdc725fcf1833fe9291d /addons/base_dashboard/static/src | |
| parent | e9d031cb0bc047fbc9e0af072b8c3c697bf9bd08 (diff) | |
[IMP] read_slice fields outside option [] are probably bugs
bzr revid: al@openerp.com-20110818225721-tn1vl2450tbe11d6
Diffstat (limited to 'addons/base_dashboard/static/src')
| -rw-r--r-- | addons/base_dashboard/static/src/js/dashboard.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/addons/base_dashboard/static/src/js/dashboard.js b/addons/base_dashboard/static/src/js/dashboard.js index 422d279a485..727e5e5519c 100644 --- a/addons/base_dashboard/static/src/js/dashboard.js +++ b/addons/base_dashboard/static/src/js/dashboard.js @@ -290,7 +290,7 @@ openerp.base_dashboard.ConfigOverview = openerp.base.View.extend({ this.dataset.domain = [['type', '=', 'manual']]; }, start: function () { - $.when(this.dataset.read_slice({fields: ['state', 'action_id', 'category_id']}), + $.when(this.dataset.read_slice(['state', 'action_id', 'category_id']), this.dataset.call('progress')) .then(this.on_records_loaded); }, @@ -352,9 +352,7 @@ openerp.base_dashboard.ApplicationTiles = openerp.base.View.extend({ }, start: function () { var self = this; - this.dataset.read_slice( - {fields: ['name', 'web_icon_data', 'web_icon_hover_data']}, - function (applications) { + this.dataset.read_slice( ['name', 'web_icon_data', 'web_icon_hover_data'], {}, function (applications) { // Create a matrix of 3*x applications var rows = []; while (applications.length) { @@ -384,9 +382,7 @@ openerp.base_dashboard.Widgets = openerp.base.View.extend({ this.widgets = new openerp.base.DataSetSearch(this, 'res.widget'); }, start: function () { - this.user_widgets.read_slice( - {fields: ['widget_id', 'user_id']}, - this.on_widgets_list_loaded); + this.user_widgets.read_slice(['widget_id', 'user_id'], {}, this.on_widgets_list_loaded); }, on_widgets_list_loaded: function (user_widgets) { var self = this; |
