fix(shim): ship hoot-dom lib files explicitly for empty Odoo 19
This commit is contained in:
@@ -171,13 +171,25 @@ spec:
|
||||
cat > /target/odoosky_hoot_dom_shim/__manifest__.py <<PYEOF
|
||||
{
|
||||
'name': 'OdooSky hoot-dom backend shim',
|
||||
'version': '{{ .Values.odoo.tag }}.1.0.3',
|
||||
'version': '{{ .Values.odoo.tag }}.1.0.4',
|
||||
'category': 'Hidden',
|
||||
'author': 'OdooSky',
|
||||
'summary': 'Register @odoo/hoot-dom alias in web.assets_backend (workaround for upstream alias-not-honored bug)',
|
||||
'depends': ['web'],
|
||||
'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/static/lib/hoot-dom/**/*',
|
||||
'odoosky_hoot_dom_shim/static/src/hoot_dom_alias.js',
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user