- Copy all OWL frontend assets (JS/CSS/XML/fonts/images) into frontend/ directory (2925 files, 43MB) — no more runtime reads from Python Odoo - Replace OdooAddonsPath config with FrontendDir pointing to local frontend/ - Rewire bundle.go, static.go, templates.go, webclient.go to read from frontend/ instead of external Python Odoo addons directory - Auto-detect frontend/ and build/ dirs relative to binary in main.go - Delete obsolete Python helper scripts (tools/*.py) The Go server is now fully self-contained: single binary + frontend/ folder. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
48 lines
1.5 KiB
JavaScript
48 lines
1.5 KiB
JavaScript
import { registry } from "@web/core/registry";
|
|
import { stepUtils } from "@web_tour/tour_utils";
|
|
|
|
registry.category("web_tour.tours").add("project_task_templates_tour", {
|
|
url: "/odoo",
|
|
steps: () => [
|
|
stepUtils.showAppsMenuItem(),
|
|
{
|
|
trigger: '.o_app[data-menu-xmlid="project.menu_main_pm"]',
|
|
run: "click",
|
|
},
|
|
{
|
|
trigger: '.o_kanban_record span:contains("Project with Task Template")',
|
|
run: "click",
|
|
content: "Navigate to the project with a task template",
|
|
},
|
|
{
|
|
trigger: 'div.o_last_breadcrumb_item span:contains("Project with Task Template")',
|
|
content: "Wait for the kanban view to load",
|
|
},
|
|
{
|
|
trigger: ".o-kanban-button-new",
|
|
run: "click",
|
|
},
|
|
{
|
|
trigger: '.dropdown-menu button.dropdown-item:contains("Template")',
|
|
run: "click",
|
|
content: "Create a task with the template",
|
|
},
|
|
{
|
|
trigger: 'div[name="name"] .o_input',
|
|
run: "edit Task",
|
|
},
|
|
{
|
|
trigger: "button.o_form_button_save",
|
|
run: "click",
|
|
},
|
|
{
|
|
content: "Wait for save completion",
|
|
trigger: ".o_form_readonly, .o_form_saved",
|
|
},
|
|
{
|
|
trigger: 'div.note-editable.odoo-editor-editable:contains("Template description")',
|
|
content: "Check that the created task has copied the description of the template",
|
|
},
|
|
],
|
|
});
|