mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-26 05:12:02 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -0,0 +1,29 @@
|
|||
import { test } from "@odoo/hoot";
|
||||
import { mountView, serverState } from "@web/../tests/web_test_helpers";
|
||||
|
||||
import { defineTimesheetModels } from "./hr_timesheet_models";
|
||||
import { checkDatasets } from "@web/../tests/views/graph/graph_test_helpers";
|
||||
|
||||
defineTimesheetModels();
|
||||
|
||||
test("hr.timesheet (graph): data are not multiplied by a company related factor (factor === 1)", async () => {
|
||||
serverState.companies[0].timesheet_uom_factor = 1;
|
||||
|
||||
const graph = await mountView({
|
||||
resModel: "account.analytic.line",
|
||||
type: "graph",
|
||||
});
|
||||
|
||||
checkDatasets(graph, "data", { data: [8] });
|
||||
});
|
||||
|
||||
test("hr.timesheet (graph): data are multiplied by a company related factor (factor !== 1)", async () => {
|
||||
serverState.companies[0].timesheet_uom_factor = 0.125;
|
||||
|
||||
const graph = await mountView({
|
||||
resModel: "account.analytic.line",
|
||||
type: "graph",
|
||||
});
|
||||
|
||||
checkDatasets(graph, "data", { data: [1] });
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue