diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-02-17 11:17:31 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-02-17 11:17:31 +0100 |
| commit | 1e9380b8faf05aa5ccb7fdfaf7309c362b1963bb (patch) | |
| tree | e49a42e01b00a5e95522a93c720762d487b17fd8 /addons/web_dashboard/static/src/js | |
| parent | affc2d4d04539d452ee207eef2c01238df72d1ef (diff) | |
| parent | 9f65e1565e785fd1c11fef65e7b49e78fba290ed (diff) | |
[merge]
bzr revid: nicolas.vanhoren@openerp.com-20120217101731-3g9hrhs65qb32pkv
Diffstat (limited to 'addons/web_dashboard/static/src/js')
| -rw-r--r-- | addons/web_dashboard/static/src/js/dashboard.js | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js index b5649e3e954..4972d32c584 100644 --- a/addons/web_dashboard/static/src/js/dashboard.js +++ b/addons/web_dashboard/static/src/js/dashboard.js @@ -321,7 +321,10 @@ openerp.web_dashboard.ConfigOverview = openerp.web.View.extend({ .value(); this.$element.html(QWeb.render('ConfigOverview.content', { completion: 100 * progress.done / progress.total, - groups: grouped_todos + groups: grouped_todos, + task_title: _t("Execute task \"%s\""), + checkbox_title: _t("Mark this task as done"), + _: _ })); var $progress = this.$element.find('div.oe-config-progress-bar'); $progress.progressbar({value: $progress.data('completion')}); @@ -420,18 +423,14 @@ openerp.web_dashboard.ApplicationTiles = openerp.web.OldWidget.extend({ }, on_installed_database: function() { var self = this; - var ds = new openerp.web.DataSetSearch(this, 'ir.ui.menu', null, [['parent_id', '=', false]]); - var r = ds.read_slice( ['name', 'web_icon_data', 'web_icon_hover_data', 'module']).then(function (applications) { - //// Create a matrix of 3*x applications - //var rows = []; - //while (applications.length) { - // rows.push(applications.splice(0, 3)); - //} - //var tiles = QWeb.render('ApplicationTiles.content', {rows: rows}); - var tiles = QWeb.render('ApplicationTiles.content', {applications: applications}); - $(tiles).appendTo(self.$element).find('.oe_install-module-link').click(function () { - openerp.webclient.menu.on_menu_click(null, $(this).data('menu')) - }); + self.rpc('/web/menu/get_user_roots', {}).then(function (menu_ids) { + var menuds = new openerp.web.DataSet(this, 'ir.ui.menu',{}) + .read_ids(menu_ids, ['name', 'web_icon_data', 'web_icon_hover_data', 'module']).then(function (applications) { + var tiles = QWeb.render('ApplicationTiles.content', {applications: applications}); + $(tiles).appendTo(self.$element).find('.oe_install-module-link').click(function () { + openerp.webclient.menu.on_menu_click(null, $(this).data('menu')) + }); + }); }); } }); |
