From 9552dbc215425a6490e871f244eb2fcbb8d25abb Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 13 Feb 2012 12:52:20 +0100 Subject: [PATCH] [FIX] replace :first-of-type by custom class in treeview styles, so open/close arrows appear in MSIE8 lp bug: https://launchpad.net/bugs/927631 fixed bzr revid: xmo@openerp.com-20120213115220-dt147bo51q2zqrnp --- addons/web/static/src/css/base.css | 8 ++++---- addons/web/static/src/xml/base.xml | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 9cc03668fdc..c1ec5dfdf32 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1916,14 +1916,14 @@ label.error { white-space: nowrap; display: block; } -.treeview-tr:first-of-type { +.treeview-tr.oe-treeview-first { background: transparent url(/web/static/src/img/expand.gif) 0 50% no-repeat; } -.oe-open .treeview-tr:first-of-type { +.oe-open .treeview-tr.oe-treeview-first { background-image: url(/web/static/src/img/collapse.gif); } -.treeview-tr:first-of-type span, -.treeview-td:first-of-type span { +.treeview-tr.oe-treeview-first span, +.treeview-td.oe-treeview-first span { margin-left: 16px; } diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 34313106399..c324d5ed5b1 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -579,20 +579,21 @@ t-att-data-id="record.id" t-att-data-level="level + 1"> + + t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe-number' : ''}"> +