Skip to content

Conversation

omarait-mlouk
Copy link
Contributor

@omarait-mlouk omarait-mlouk commented Sep 24, 2025

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

  • Module installs without errors
  • Tutorial can be completed successfully
  • All existing functionality preserved

Related Issues

Closes #981

Checklist

  • The fix addresses the root cause
  • No breaking changes introduced
  • Commit message follows conventional format
  • Documentation (tutorial) remains accurate

@robodoo
Copy link

robodoo commented Sep 24, 2025

Pull request status dashboard

@AntoineVDV AntoineVDV linked an issue Oct 2, 2025 that may be closed by this pull request
@AntoineVDV AntoineVDV changed the title [FIX] website_airproof: Fix template loading order issue [FIX] website_airproof: load templates in correct order Oct 2, 2025
Copy link
Collaborator

@AntoineVDV AntoineVDV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robodoo r+ squash

@robodoo
Copy link

robodoo commented Oct 2, 2025

Merge method set to squash.

@robodoo
Copy link

robodoo commented Oct 2, 2025

@omarait-mlouk @AntoineVDV 'ci/style' failed on this reviewed PR.

The carousel template file was loaded too late in the manifest data
sequence, causing a ParseError when new_page_templates tried to
reference it.
@AntoineVDV AntoineVDV force-pushed the fix/airproof-loading-order branch from 911e60f to f42cbb3 Compare October 3, 2025 08:39
@AntoineVDV
Copy link
Collaborator

@robodoo r+ rebase-ff

@robodoo
Copy link

robodoo commented Oct 3, 2025

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request Oct 3, 2025
The carousel template file was loaded too late in the manifest data
sequence, causing a ParseError when new_page_templates tried to
reference it.

closes #982

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
@robodoo robodoo closed this Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Airproof tutorial: Loading order issue causes installation failure

4 participants