mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 22:32:03 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* 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;
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue