[FIX] web: fix db manager layout in Chrome 50
Complement of f992c8ee19
,
to be reverted in saas-6+ and in 8.0 when Chrome's
fix reaches the stable Chrome channel.
Fixes #11629
See https://bugs.chromium.org/p/chromium/issues/detail?id=603507
This commit is contained in:
parent
d043fd03ce
commit
fc2aa73606
|
@ -65,6 +65,14 @@
|
|||
<link href="/base/static/src/css/modules.css" rel="stylesheet"/>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
/* Do not forward port this block! */
|
||||
if ($.browser.chrome) {
|
||||
var chrome_version = $.browser.version.split('.')[0];
|
||||
if (parseInt(chrome_version, 10) >= 50) {
|
||||
openerp.loadCSS('/web/static/src/css/chrome50.css');
|
||||
}
|
||||
}
|
||||
|
||||
var s = new openerp.init({{ modules|safe }});
|
||||
var wc = new s.web.WebClient(null, { action: 'database_manager' });
|
||||
wc.setElement($(document.body));
|
||||
|
|
Loading…
Reference in New Issue