odoo/tutorials#982
Created by omarait-mlouk
Merged
at 34d70b5f1c1079bdb9ae64d3fb2f95c95d6cba22
Statuses:
- ci/style: (runtime 26s)
- ci/tutorial: (runtime 67185s)
- label
- omarait-mlouk:fix/airproof-loading-order
- head
- f42cbb31dd24fe580fac80c02f19314dfe412260
- merged
- 1 month 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__.pyto 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