odoo/tutorials#989

Created by fw-bot
Merged at 2846998fe81a1ef52be29868dde5a50810b668fd

Statuses:

label
odoo:master-fix/airproof-loading-order-467650-fw
head
60e4b57029a7b55acbb1a13b4c62d18351209169
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