diff --git a/requirements.txt b/requirements.txt index edbf7b4b4..0162c2845 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ # generated from manifests external_dependencies bokeh==2.3.1 +mpld3 diff --git a/setup/web_widget_mpld3_chart/odoo/addons/web_widget_mpld3_chart b/setup/web_widget_mpld3_chart/odoo/addons/web_widget_mpld3_chart new file mode 120000 index 000000000..5b2ad03d2 --- /dev/null +++ b/setup/web_widget_mpld3_chart/odoo/addons/web_widget_mpld3_chart @@ -0,0 +1 @@ +../../../../web_widget_mpld3_chart \ No newline at end of file diff --git a/setup/web_widget_mpld3_chart/setup.py b/setup/web_widget_mpld3_chart/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/web_widget_mpld3_chart/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_widget_mpld3_chart/static/src/js/web_widget_mpld3_chart.js b/web_widget_mpld3_chart/static/src/js/web_widget_mpld3_chart.js index 474fd4602..aed6782f6 100644 --- a/web_widget_mpld3_chart/static/src/js/web_widget_mpld3_chart.js +++ b/web_widget_mpld3_chart/static/src/js/web_widget_mpld3_chart.js @@ -1,11 +1,11 @@ -odoo.define("web_widget_mpld3_chart", function(require) { +odoo.define("web_widget_mpld3_chart", function (require) { "use strict"; var fieldRegistry = require("web.field_registry"); var AbstractField = require("web.AbstractField"); var Mpld3ChartWidget = AbstractField.extend({ - start: function() { + start: function () { var val = this.value; this.$el.html(val); },