mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[12.0][NEW] web_widget_plotly_chart
This commit is contained in:
17
web_widget_plotly_chart/static/src/js/widget_plotly.js
Normal file
17
web_widget_plotly_chart/static/src/js/widget_plotly.js
Normal 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
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user