19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:00 +01:00
parent a1137a1456
commit e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions

View file

@ -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] });
});