diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-01-13 17:28:49 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-01-13 17:28:49 +0100 |
| commit | 6595a05ee0f21cfd9e66f0ae5d52cfb6cd48add5 (patch) | |
| tree | a4023620f9e6b063caf5e3b6644c9b32b4c85244 /addons/web/static/src | |
| parent | 6132cfc44f87d591e66fbc7802fefeaebb10ccc5 (diff) | |
[ADD] link to debug mode in about window
bzr revid: xmo@openerp.com-20120113162849-tv0mirnxn6va111b
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 5 | ||||
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 32a70d587a7..39bc0181e16 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -689,6 +689,11 @@ openerp.web.Header = openerp.web.Widget.extend(/** @lends openerp.web.Header# * var self = this; self.rpc("/web/webclient/version_info", {}).then(function(res) { var $help = $(QWeb.render("About-Page", {version_info: res})); + $help.find('a.oe_activate_debug_mode').click(function (e) { + e.preventDefault(); + window.location = $.param.querystring( + window.location.href, 'debug'); + }); $help.dialog({autoOpen: true, modal: true, width: 960, title: _t("About")}); }); diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index f21749277a6..eb93336fc0c 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1716,6 +1716,7 @@ <t t-name="About-Page"> <div> + <a class="oe_activate_debug_mode" href="?debug">Debug mode</a> <h1>OpenERP Web</h1> <h3 style="padding:0 5px 5px">Version <t t-esc="version_info.version"/></h3> <p> |
