[FIX] web: stat_button: display none on hover

A 'display: none' rule on hover has been added for boolean buttons, on each
'o_stat_button o_stat_text' that hasn't classname o_hover. This applies on
every stat button that isn't a boolean button, so their content is always
hidden on hover.
This commit is contained in:
Aaron Bohy
2015-09-01 11:02:41 +02:00
committed by Raphael Collet
parent 447dd53de5
commit c1cc4b830b
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1438,11 +1438,11 @@
<t t-name="BooleanButton">
<t t-if="widget.get_value()">
<span class="o_stat_text text-success"><t t-esc="widget.string_true"/></span>
<span class="o_stat_text o_not_hover text-success"><t t-esc="widget.string_true"/></span>
<span class="o_stat_text o_hover text-danger"><t t-esc="widget.hover_true"/></span>
</t>
<t t-if="!widget.get_value()">
<span class="o_stat_text text-danger"><t t-esc="widget.string_false"/></span>
<span class="o_stat_text o_not_hover text-danger"><t t-esc="widget.string_false"/></span>
<span class="o_stat_text o_hover text-success"><t t-esc="widget.hover_false"/></span>
</t>
</t>