summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorMathieu Duckerts-Antoine <dam@odoo.com>2019-06-05 11:41:43 +0000
committerVincent Schippefilt <vsc@odoo.com>2019-07-30 06:53:11 +0000
commit7811189c5920b566a4f48307b2bf7ee099d131eb (patch)
tree94f04ccf808820c888ea93880021ae362d220c4f /addons/web/static/src/xml/base.xml
parent8a3284685856b6980e3b620abdbbb3e2c79f57c4 (diff)
[IMP] web: custom tooltips in graph view
Co-Authored-By: Thomas Werland <twe@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 12e3f2188fa..da8e376e7d3 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -399,6 +399,27 @@
</div>
</t>
+<div t-name="GraphView.CustomTooltip" class="o_graph_custom_tooltip">
+ <table>
+ <thead>
+ <tr>
+ <th class="o_measure"><t t-esc="measure"/></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr t-foreach="tooltipItems" t-as="tooltipItem">
+ <td>
+ <span class="o_square" t-att-style="'background-color: ' + tooltipItem.boxColor"/>
+ <span class="o_label" t-att-style="'max-width: ' + maxWidth"> <t t-esc="tooltipItem.label" /> </span>
+ </td>
+ <td class="o_value">
+ <t t-esc="tooltipItem.value"/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+
<div t-name="PivotView" t-attf-class="o_pivot #{widget.enableLinking ? 'o_enable_linking' : ''}">
<div class="o_field_selection"/>
</div>