odoo/tutorials#988

Created by fw-bot
Merged at b68a19249d490da35c2c6fd6b04da5f28ef87d99

Statuses:

label
odoo:19.0-fix/airproof-loading-order-465502-fw
head
b7637ab72c03ee0c0390a6fb446d3ebf64b4f006
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