Repository navigation
[OU-FIX] mail: skip split modules that are not on the addons path - #12
Merged
cursor[bot] merged 3 commits intoNov 12, 2026
Merged
Conversation
Co-authored-by: André de Kock <[email protected]>
The guard skips a module whose path is missing or whose manifest dependencies are not installed. It does not detect an installed sms addon that has no sms.composer model. Co-authored-by: André de Kock <[email protected]>
Keep the merged mail pre-migration, including chat dedupe and link preview dedupe, and skip a split module only when its addon path or a manifest dependency is missing. Co-authored-by: André de Kock <[email protected]>
cursor Bot
pushed a commit
that referenced
this pull request
Nov 12, 2026
Rebuild on fork 20.0 after the OCA sync and PRs #1, #2, #3 and #12. Keep theme_common removal, update_property and the auto-install guard together with the base migration. Co-authored-by: André de Kock <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Before the mail pre-migration marks
mail_tracking,mail_tracking_mass_mailing, ormail_tracking_smsto install, it checks two things:odoo.modules.get_module_pathfinds the addon.dependsisinstalled,to upgrade, orto install.If either check fails, the module is skipped and a warning is logged. On stock Odoo the paths exist and
mail/mass_mailing/smsare in one of those states, so all three modules are still scheduled.mail_trackingis scheduled first, because the other two depend on it.What this does not do
It does not look inside a dependency. A custom
smsaddon that is installed and on the addons path, but does not definesms.composer, still counts assms.mail_tracking_smsis scheduled and then crashes withTypeError: Model 'sms.composer' does not exist in registry. This pull request does not fix that case. It stays open and is not part of the merge into20.0.Verification
ruffis clean. The server test of20.0-integration-2confirmed the custom-smscrash is unchanged when the path and the dependency row are present.