mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 09:32:00 +02:00
22 lines
726 B
JavaScript
22 lines
726 B
JavaScript
/**
|
|
* Add custom step to check allow_billable during project creation
|
|
* to be able to set a partner on project/tasks.
|
|
*/
|
|
import { registry } from "@web/core/registry";
|
|
import "@project/../tests/tours/project_tour";
|
|
import { patch } from "@web/core/utils/patch";
|
|
|
|
patch(registry.category("web_tour.tours").get("project_test_tour"), {
|
|
steps() {
|
|
const originalSteps = super.steps();
|
|
const projectCreationStepIndex = originalSteps.findIndex(
|
|
(step) => step.id === "project_creation"
|
|
);
|
|
originalSteps.splice(projectCreationStepIndex, 0, {
|
|
trigger: "div[name='allow_billable'] input",
|
|
run: "edit Test",
|
|
});
|
|
|
|
return originalSteps;
|
|
},
|
|
});
|