odoo/tutorials#988
Created by fw-bot
Merged
at b68a19249d490da35c2c6fd6b04da5f28ef87d99
Statuses:
- ci/style: (runtime 26s)
- ci/tutorial: (runtime 91s)
- label
- odoo:19.0-fix/airproof-loading-order-465502-fw
- head
- b7637ab72c03ee0c0390a6fb446d3ebf64b4f006
- merged
- 1 week ago by Sales, Antoine Vandevenne (anv)
odoo/tutorials | |
---|---|
18.0 | #982 |
19.0 | #988 |
master | #989 |
[FIX] website_airproof: load templates in correct order
Description
Fixes the loading order issue in the Airproof tutorial that causes module installation to fail.
Problem
The s_airproof_carousel
template was referenced in new_page_templates
before being loaded into the database, causing:
ValueError: External ID not found in the system: website_airproof.s_airproof_carousel
Solution
Moved 'views/snippets/options.xml',
and views/snippets/s_airproof_carousel.xml
to the beginning of the data list in __manifest__.py
to ensure the template is loaded before being referenced.
Changes
- Reordered data files in
__manifest__.py
to load templates first - No functional changes to the template or other files
Testing
- [x] Module installs without errors
- [x] Tutorial can be completed successfully
- [x] All existing functionality preserved
Related Issues
Closes #981
Checklist
- [x] The fix addresses the root cause
- [x] No breaking changes introduced
- [x] Commit message follows conventional format
- [x] Documentation (tutorial) remains accurate
Forward-Port-Of: #982