odoo/tutorials#989

Created by fw-bot
Merged at 2846998fe81a1ef52be29868dde5a50810b668fd

Statuses:

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

Testing

Related Issues

Closes #981

Checklist

Forward-Port-Of: #982