mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 02:12:07 +02:00
24 lines
640 B
JavaScript
24 lines
640 B
JavaScript
/** @odoo-module **/
|
|
|
|
import { registry } from "@web/core/registry";
|
|
import { GraphRenderer } from "@web/views/graph/graph_renderer";
|
|
import { graphView } from "@web/views/graph/graph_view";
|
|
|
|
export class SkillsGraphRenderer extends GraphRenderer {
|
|
getScaleOptions() {
|
|
const scaleOptions = super.getScaleOptions();
|
|
|
|
if ('yAxes' in scaleOptions) {
|
|
scaleOptions['yAxes'][0]['ticks']['suggestedMax'] = 100;
|
|
}
|
|
|
|
return scaleOptions;
|
|
}
|
|
}
|
|
|
|
export const skillsGraphView = {
|
|
...graphView,
|
|
Renderer: SkillsGraphRenderer,
|
|
};
|
|
|
|
registry.category("views").add("skills_graph", skillsGraphView);
|