mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 10:31:58 +02:00
Initial commit: Hr packages
This commit is contained in:
commit
62531cd146
2820 changed files with 1432848 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
/** @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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue