diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-08-17 10:07:51 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-08-17 10:07:51 +0200 |
| commit | 2aaad4d256fea182878ebd054733235aba636b47 (patch) | |
| tree | bf6a8225773317656c67c39b7cb2a4e2b722d994 /addons/web/static/src/js | |
| parent | 328af5dc8608172505fa6761190bf349e7656d89 (diff) | |
Revert "[IMP] web,web_settings_dashboard: Move 'About' menu to settings dashboard"
This reverts commit 328af5dc8608172505fa6761190bf349e7656d89.
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/widgets/user_menu.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/web/static/src/js/widgets/user_menu.js b/addons/web/static/src/js/widgets/user_menu.js index 3c65ab3ac49..7b4e4d05b25 100644 --- a/addons/web/static/src/js/widgets/user_menu.js +++ b/addons/web/static/src/js/widgets/user_menu.js @@ -46,6 +46,28 @@ var UserMenu = Widget.extend({ on_menu_support: function () { window.open('https://www.odoo.com/buy', '_blank'); }, + on_menu_about: function () { + var self = this; + if (odoo.db_info) { + menu_help_about(odoo.db_info); + } else { + this.rpc("/web/webclient/version_info", {}).done(menu_help_about); + } + + function menu_help_about(db_info) { + var $help = $(QWeb.render("UserMenu.about", {db_info: db_info, debug: core.debug})); + $help.find('a.oe_activate_debug_mode').click(function (e) { + e.preventDefault(); + window.location = $.param.querystring(window.location.href, 'debug'); + }); + new Dialog(self, { + size: 'medium', + dialogClass: 'o_act_window', + title: _t("About"), + $content: $help + }).open(); + } + }, on_menu_settings: function() { var self = this; this.trigger_up('clear_uncommitted_changes', { |
