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:
Marc
2026-03-31 23:09:12 +02:00
parent 0ed29fe2fd
commit 8741282322
2933 changed files with 280644 additions and 264 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1 @@
<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path d="M38 46H12c-4.418 0-8-3.498-8-7.814V4h30c2.21 0 4 1.75 4 3.907V46Z" fill="#2EBCFA"/><path d="M12 46h26a7.999 7.999 0 0 0 8-8H20a8 8 0 0 1-8 8Z" fill="#144496"/><path d="M38 8C23.408 8 10.687 16.014 4 27.88V4h30a4 4 0 0 1 4 4Z" fill="#088BF5"/><path d="M20.425 34h1.181v-1.707c3.23-.198 5.394-1.791 5.394-4.435v-.021c0-2.332-1.495-3.498-4.442-4.143l-.952-.198v-3.02c1.035.167 1.715.74 1.86 1.708l.011.02 3.283-.01.01-.01c-.115-2.53-2.007-4.216-5.164-4.435V16h-1.18v1.739c-3.074.145-5.28 1.728-5.28 4.33v.021c0 2.343 1.547 3.602 4.338 4.216l.941.198v3.082c-1.223-.115-1.934-.625-2.101-1.54l-.01-.022-3.293.01-.021.011c.084 2.665 2.237 4.133 5.425 4.258V34Zm-1.777-12.19v-.022c0-.75.606-1.228 1.777-1.332v2.769c-1.213-.323-1.777-.729-1.777-1.416Zm4.85 6.423v.02c0 .802-.68 1.229-1.892 1.333v-2.821c1.36.343 1.892.697 1.892 1.468Z" fill="#fff"/></svg>

After

Width:  |  Height:  |  Size: 939 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -0,0 +1 @@
<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#o_icon_l10n__a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M25 0c13.807 0 25 11.193 25 25S38.807 50 25 50 0 38.807 0 25 11.193 0 25 0Zm0 48c2.105 0 4.598-1.844 6.682-6.188 1.047-2.181 1.902-4.832 2.481-7.812H15.837c.58 2.98 1.434 5.631 2.48 7.812C20.403 46.156 22.896 48 25 48Zm-9.503-16h19.006c.322-2.202.497-4.552.497-7 0-2.448-.175-4.798-.497-7H15.497A48.566 48.566 0 0 0 15 25c0 2.448.175 4.798.497 7Zm.34-16c.58-2.98 1.434-5.631 2.48-7.812C20.403 3.845 22.896 2 25 2c2.105 0 4.598 1.845 6.682 6.188 1.047 2.181 1.902 4.832 2.481 7.812H15.837Zm20.686 2c.31 2.221.477 4.57.477 7 0 2.43-.166 4.779-.477 7h10.392A22.987 22.987 0 0 0 48 25c0-2.44-.38-4.793-1.085-7H36.523Zm9.65-2h-9.974c-1.08-5.826-3.177-10.599-5.837-13.372C37.502 4.333 43.35 9.368 46.172 16ZM13.8 16H3.828c2.822-6.632 8.67-11.667 15.81-13.372-2.66 2.773-4.757 7.546-5.837 13.372ZM3.085 18h10.392A50.707 50.707 0 0 0 13 25c0 2.43.166 4.779.477 7H3.085A22.986 22.986 0 0 1 2 25c0-2.44.38-4.793 1.085-7Zm27.277 29.372c2.66-2.773 4.757-7.546 5.837-13.372h9.974c-2.823 6.632-8.67 11.667-15.811 13.372Zm-10.724 0C12.498 45.667 6.65 40.632 3.828 34H13.8c1.08 5.826 3.177 10.599 5.837 13.372Z" fill="#1AD3BB"/></g><defs><clipPath id="o_icon_l10n__a"><path fill="#fff" d="M0 0h50v50H0z"/></clipPath></defs></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB