[12.0][NEW] web_widget_plotly_chart

This commit is contained in:
Roberto Fichera
2019-09-10 11:40:22 +02:00
parent bc466c1365
commit ea54bc6209
13 changed files with 712 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
odoo.define('web_widget_plotly_chart', function(require) {
'use strict'
var fieldRegistry = require('web.field_registry');
var AbstractField = require('web.AbstractField');
var PlotlyChartWidget = AbstractField.extend({
_renderReadonly: function() {
var val = this.value;
this.$el.html(val);
}
});
fieldRegistry.add('plotly_chart', PlotlyChartWidget);
return {
PlotlyChartWidget: PlotlyChartWidget
};
});