diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-04-19 11:33:17 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-04-19 11:33:17 +0200 |
| commit | 76d1116a25b3cc13cd577ec0441e575471f49e7c (patch) | |
| tree | 9293a08bb86aad2de08cf31eb40c7e022521a877 /addons/web/static/src | |
| parent | 77dae4c9c54ac8341867f7b382a9be564f23d716 (diff) | |
| parent | 9fa53b7ee7fc8faca2ee8bc1d5205dca62f3e565 (diff) | |
[MERGE] forward port of branch 8.0 up to 9fa53b7
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/css/chrome50.css | 8 | ||||
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/addons/web/static/src/css/chrome50.css b/addons/web/static/src/css/chrome50.css new file mode 100644 index 00000000000..cfcf6d84033 --- /dev/null +++ b/addons/web/static/src/css/chrome50.css @@ -0,0 +1,8 @@ +/* Do not forward port! */ +.oe_leftbar > div > div > div { + display: table-cell; +} + +.oe_view_manager > .oe_view_manager_wrapper > div { + display: table-cell; +} diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 42e594aaaf8..cb9aa0b553c 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1407,6 +1407,14 @@ instance.web.WebClient = instance.web.Client.extend({ self.action_manager.do_action(self.client_options.action_post_login); delete(self.client_options.action_post_login); } + + /* Do not forward port! */ + if ($.browser.chrome) { + var chrome_version = $.browser.version.split('.')[0]; + if (parseInt(chrome_version, 10) >= 50) { + openerp.loadCSS('/web/static/src/css/chrome50.css'); + } + } }, update_logo: function() { var company = this.session.company_id; |
