Skip to content

Conversation

fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented Oct 3, 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

Forward-Port-Of: #982

The carousel template file was loaded too late in the manifest data
sequence, causing a ParseError when new_page_templates tried to
reference it.

X-original-commit: 34d70b5
@robodoo
Copy link

robodoo commented Oct 3, 2025

Pull request status dashboard

@fw-bot
Copy link
Collaborator Author

fw-bot commented Oct 3, 2025

This PR targets 19.0 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo closed this in b68a192 Oct 3, 2025
@fw-bot fw-bot deleted the 19.0-fix/airproof-loading-order-465502-fw branch October 10, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Airproof tutorial: Loading order issue causes installation failure
3 participants