mirror of https://github.com/OCA/web.git
[IMP] pre-commit run after update
Includes some manual fixes to silent ESLint warnings.pull/2526/head
parent
5f68d59bd3
commit
8d7b5acee2
|
@ -1,17 +1,17 @@
|
||||||
odoo.define('web_widget_bokeh_chart', function (require) {
|
odoo.define("web_widget_bokeh_chart", function(require) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var fieldRegistry = require('web.field_registry');
|
var fieldRegistry = require("web.field_registry");
|
||||||
var AbstractField = require('web.AbstractField');
|
var AbstractField = require("web.AbstractField");
|
||||||
|
|
||||||
var BokehChartWidget = AbstractField.extend({
|
var BokehChartWidget = AbstractField.extend({
|
||||||
_renderReadonly: function() {
|
_renderReadonly: function() {
|
||||||
var val = this.value;
|
var val = this.value;
|
||||||
this.$el.html(val);
|
this.$el.html(val);
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
fieldRegistry.add('bokeh_chart', BokehChartWidget);
|
fieldRegistry.add("bokeh_chart", BokehChartWidget);
|
||||||
return {
|
return {
|
||||||
BokehChartWidget: BokehChartWidget
|
BokehChartWidget: BokehChartWidget,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,15 +6,12 @@
|
||||||
/* Overriding this styling option Odoo menu is now displayed on top of bokeh graphs */
|
/* Overriding this styling option Odoo menu is now displayed on top of bokeh graphs */
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
height: inherit !important;
|
height: inherit !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
.bk-root > .bk {
|
.bk-root > .bk {
|
||||||
height: inherit !important;
|
height: inherit !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
.bk-root > .bk > .bk {
|
.bk-root > .bk > .bk {
|
||||||
height: inherit !important;
|
height: inherit !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
.bk-root > .bk > .bk > .bk-canvas {
|
.bk-root > .bk > .bk > .bk-canvas {
|
||||||
height: inherit !important;
|
height: inherit !important;
|
||||||
|
|
|
@ -1,16 +1,43 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<template id="assets_backend" name="web_widget_bokeh_chart assets"
|
<template
|
||||||
inherit_id="web.assets_backend">
|
id="assets_backend"
|
||||||
|
name="web_widget_bokeh_chart assets"
|
||||||
|
inherit_id="web.assets_backend"
|
||||||
|
>
|
||||||
<xpath expr="." position="inside">
|
<xpath expr="." position="inside">
|
||||||
<link rel="stylesheet" type="text/css" href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-1.1.0.css"/>
|
<link
|
||||||
<link rel="stylesheet" type="text/css" href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-1.1.0.css"/>
|
rel="stylesheet"
|
||||||
<link rel="stylesheet" type="text/scss" href="/web_widget_bokeh_chart/static/src/scss/custom-bokeh.scss"/>
|
type="text/css"
|
||||||
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-1.1.0.js"/>
|
href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-1.1.0.css"
|
||||||
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-1.1.0.js"/>
|
/>
|
||||||
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-api-1.1.0.js"/>
|
<link
|
||||||
<script type="text/javascript" src="/web_widget_bokeh_chart/static/src/js/web_widget_bokeh_chart.js"/>
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
href="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-1.1.0.css"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/scss"
|
||||||
|
href="/web_widget_bokeh_chart/static/src/scss/custom-bokeh.scss"
|
||||||
|
/>
|
||||||
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-1.1.0.js"
|
||||||
|
/>
|
||||||
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-widgets-1.1.0.js"
|
||||||
|
/>
|
||||||
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="/web_widget_bokeh_chart/static/src/lib/bokeh/bokeh-api-1.1.0.js"
|
||||||
|
/>
|
||||||
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="/web_widget_bokeh_chart/static/src/js/web_widget_bokeh_chart.js"
|
||||||
|
/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue