diff options
| author | Adrien Dieudonne <adr@odoo.com> | 2018-09-19 11:42:43 +0200 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2018-09-24 13:22:06 +0200 |
| commit | a533b9f29090e56bbffbabb90628cd117c166d62 (patch) | |
| tree | eab003253f8b0b34a5c81daa3f9b1ff7ae0a9328 /addons/web/static/src/xml | |
| parent | 411ce6a79e7a8b7f5f3e6485ecde9498394562ef (diff) | |
[FIX] web: graph_renderer: show graph title
Since odoo/enterprise@e3b0d2a, the title wasn't set anymore.
This logic is now moved in the graph renderer to be able to
set a title in every graphs.
For now, we only use the title attribute for pie charts embedded
in dashboard views.
Additional tests has been added in 'web_dashboard' (enterprise).
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/pie_chart.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/pie_chart.xml b/addons/web/static/src/xml/pie_chart.xml index 31f31b5b8d2..5c3411bc882 100644 --- a/addons/web/static/src/xml/pie_chart.xml +++ b/addons/web/static/src/xml/pie_chart.xml @@ -1,7 +1,7 @@ <template> <t t-name="web.PieChart"> - <graph type="pie"> + <graph type="pie" t-att-title="modifiers.title || modifiers.measure"> <field t-att-name="modifiers.groupby.split(':')[0]" t-att-interval="modifiers.groupby.split(':')[1]"/> <field t-if="modifiers.measure" t-att-name="modifiers.measure" type="measure"/> </graph> |
