[ADD] placeholder info in charts which can not be displayed

bzr revid: xmo@openerp.com-20110928142422-0uogjyg3sa1znaah
This commit is contained in:
Xavier Morel
2011-09-28 16:24:22 +02:00
parent cd39bd968d
commit 784d6789fb
+3
View File
@@ -178,6 +178,9 @@ openerp.web_graph.GraphView = openerp.web.View.extend({
// columns on top of one another instead of side by side), but it
// does not handle clustered stacked bar charts
if (this.columns.length > 1) {
this.$element.text(
'OpenERP Web does not support combining grouping and '
+ 'multiple columns in graph at this time.');
throw new Error(
'dhtmlx can not handle columns counts of that magnitude');
}