several fixes

This commit is contained in:
lreficent
2017-09-07 18:00:58 +02:00
committed by Artem Kostyuk
parent d991ed117b
commit 3ba0eaceca
12 changed files with 52452 additions and 236 deletions

View File

@@ -70,6 +70,11 @@ welcomed feedback.
Credits Credits
======= =======
* This module uses the library `Bokeh <https://github.com/bokeh/bokeh>`_
which is under the open-source BSD 3-clause "New" or "Revised" License.
Copyright (c) 2012, Anaconda, Inc.
* Odoo Community Association (OCA)
Contributors Contributors
------------ ------------

View File

@@ -17,6 +17,6 @@
"external_dependencies": { "external_dependencies": {
"python": ['bokeh'], "python": ['bokeh'],
}, },
"auto_install": True, "auto_install": False,
"license": "AGPL-3", "license": "AGPL-3",
} }

View File

@@ -10,10 +10,12 @@ odoo.define('web_widget_bokeh_chart', function (require) {
var BokehChartWidget = form_common.AbstractField.extend({ var BokehChartWidget = form_common.AbstractField.extend({
render_value: function() { render_value: function() {
var self = this;
var val = this.get('value'); var val = this.get('value');
this.$el.html(val); this.$el.html(val);
} }
}); });
core.form_widget_registry.add('bokeh_chart', BokehChartWidget); core.form_widget_registry.add('bokeh_chart', BokehChartWidget);
return {
BokehChartWidget: BokehChartWidget
};
}); });

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -4,10 +4,10 @@
<template id="assets_backend" name="web_widget_bokeh_chart assets" <template id="assets_backend" name="web_widget_bokeh_chart assets"
inherit_id="web.assets_backend"> inherit_id="web.assets_backend">
<xpath expr="." position="inside"> <xpath expr="." position="inside">
<link rel="stylesheet" href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-0.12.7.min.css"/> <link rel="stylesheet" href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-0.12.7.css"/>
<link rel="stylesheet" href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-0.12.7.min.css"/> <link rel="stylesheet" href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-0.12.7.css"/>
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-0.12.7.min.js"/> <script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-0.12.7.js"/>
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-0.12.7.min.js"/> <script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-0.12.7.js"/>
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/js/web_widget_bokeh_chart.js"/> <script type="text/javascript" src="/web_widget_bokeh_chart/static/src/js/web_widget_bokeh_chart.js"/>
</xpath> </xpath>
</template> </template>