mirror of https://github.com/OCA/web.git
18 lines
483 B
JavaScript
18 lines
483 B
JavaScript
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
|
|
};
|
|
});
|