fix(shim): ship hoot-dom lib files explicitly for empty Odoo 19
This commit is contained in:
@@ -5,7 +5,7 @@ description: |
|
|||||||
Variation between instances is expressed via values.yaml only.
|
Variation between instances is expressed via values.yaml only.
|
||||||
No chart variants. No string-templating in Tower.
|
No chart variants. No string-templating in Tower.
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.9
|
version: 0.1.10
|
||||||
appVersion: "1.0"
|
appVersion: "1.0"
|
||||||
keywords:
|
keywords:
|
||||||
- odoo
|
- odoo
|
||||||
|
|||||||
@@ -171,13 +171,25 @@ spec:
|
|||||||
cat > /target/odoosky_hoot_dom_shim/__manifest__.py <<PYEOF
|
cat > /target/odoosky_hoot_dom_shim/__manifest__.py <<PYEOF
|
||||||
{
|
{
|
||||||
'name': 'OdooSky hoot-dom backend shim',
|
'name': 'OdooSky hoot-dom backend shim',
|
||||||
'version': '{{ .Values.odoo.tag }}.1.0.3',
|
'version': '{{ .Values.odoo.tag }}.1.0.4',
|
||||||
'category': 'Hidden',
|
'category': 'Hidden',
|
||||||
'author': 'OdooSky',
|
'author': 'OdooSky',
|
||||||
'summary': 'Register @odoo/hoot-dom alias in web.assets_backend (workaround for upstream alias-not-honored bug)',
|
'summary': 'Register @odoo/hoot-dom alias in web.assets_backend (workaround for upstream alias-not-honored bug)',
|
||||||
'depends': ['web'],
|
'depends': ['web'],
|
||||||
'assets': {
|
'assets': {
|
||||||
|
# Empty-DB Odoo 19 doesn't transitively pull
|
||||||
|
# hoot-dom into the prod bundle (no barcode /
|
||||||
|
# sale / web_tour static/src code is installed).
|
||||||
|
# The alias below declares a dep on
|
||||||
|
# @web/../lib/hoot-dom/hoot-dom — if no other
|
||||||
|
# source pulls it, the bundle errors with
|
||||||
|
# "module not defined" and the backend fails to
|
||||||
|
# boot (2026-05-13 erp19 fresh-instance finding).
|
||||||
|
# Pull the lib files explicitly so the path-
|
||||||
|
# based name is always registered; the alias
|
||||||
|
# then re-exports under @odoo/hoot-dom.
|
||||||
'web.assets_backend': [
|
'web.assets_backend': [
|
||||||
|
'web/static/lib/hoot-dom/**/*',
|
||||||
'odoosky_hoot_dom_shim/static/src/hoot_dom_alias.js',
|
'odoosky_hoot_dom_shim/static/src/hoot_dom_alias.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user