Eliminate Python dependency: embed frontend assets in odoo-go
- 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>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { expect, test } from "@odoo/hoot";
|
||||
import { press } from "@odoo/hoot-dom";
|
||||
import { animationFrame } from "@odoo/hoot-mock";
|
||||
import { mountView } from "@web/../tests/web_test_helpers";
|
||||
|
||||
import { ProjectTask, defineProjectModels } from "./project_models";
|
||||
|
||||
defineProjectModels();
|
||||
|
||||
test("project.task (form): check ProjectTaskPrioritySwitch", async () => {
|
||||
ProjectTask._records = [{ id: 1, priority: "0" }];
|
||||
|
||||
await mountView({
|
||||
resModel: "project.task",
|
||||
type: "form",
|
||||
arch: `
|
||||
<form class="o_kanban_test">
|
||||
<field name="priority" widget="priority_switch"/>
|
||||
</form>
|
||||
`,
|
||||
});
|
||||
|
||||
expect("div[name='priority'] .fa-star-o").toHaveCount(1, {
|
||||
message: "The low priority should display the fa-star-o (empty) icon",
|
||||
});
|
||||
await press("alt+r");
|
||||
await animationFrame();
|
||||
expect("div[name='priority'] .fa-star").toHaveCount(1, {
|
||||
message:
|
||||
"After using the alt+r hotkey the priority should be set to high and the widget should display the fa-star (filled) icon",
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user