summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2018-10-02 13:07:06 +0200
committerAdrien Dieudonne <adr@odoo.com>2018-10-02 13:10:34 +0200
commitb2cadc92384e3e7e6fbabff2ab099279b9690817 (patch)
treeb4a48ebbaefad44ada554cc133b19b6b2e13d088 /addons/web/static/src
parent775e8a9f2de3370e9947a612097ead65afd3b7ed (diff)
[FIX] web: avoid no content helper for pie chart in comparison mode
In comparison mode with no data, we render two empty pie charts even if it's not an embedded view. The non content helper is still used when there is no comparison.
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/graph/graph_renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/graph/graph_renderer.js b/addons/web/static/src/js/views/graph/graph_renderer.js
index 470d064ef68..f923ade149b 100644
--- a/addons/web/static/src/js/views/graph/graph_renderer.js
+++ b/addons/web/static/src/js/views/graph/graph_renderer.js
@@ -262,7 +262,7 @@ return AbstractRenderer.extend({
return;
}
if (all_zero) {
- if (this.isEmbedded) {
+ if (this.isEmbedded || this.isComparison) {
// add fake data to display an empty pie chart
data = [{
x : "No data" ,