Skip to content

[OU-FIX] mail: skip split modules that are not on the addons path - #12

Merged
cursor[bot] merged 3 commits into
20.0from
cursor/ou-20-06-skip-missing-split-modules-3e8f
Nov 12, 2026
Merged

cursor[bot] merged 3 commits into
20.0from
cursor/ou-20-06-skip-missing-split-modules-3e8f

Conversation

@adekock11

@adekock11 adekock11 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

What this does

Before the mail pre-migration marks mail_tracking, mail_tracking_mass_mailing, or mail_tracking_sms to install, it checks two things:

  1. odoo.modules.get_module_path finds the addon.
  2. Every module named in that addon's depends is installed, to upgrade, or to install.

If either check fails, the module is skipped and a warning is logged. On stock Odoo the paths exist and mail / mass_mailing / sms are in one of those states, so all three modules are still scheduled. mail_tracking is scheduled first, because the other two depend on it.

What this does not do

It does not look inside a dependency. A custom sms addon that is installed and on the addons path, but does not define sms.composer, still counts as sms. mail_tracking_sms is scheduled and then crashes with TypeError: 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 into 20.0.

Verification

ruff is clean. The server test of 20.0-integration-2 confirmed the custom-sms crash is unchanged when the path and the dependency row are present.

Open in Web Open in Cursor 

cursoragent and others added 3 commits November 12, 2026 07:03
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
cursor Bot merged commit 29ada4b into 20.0 Nov 12, 2026
6 of 8 checks passed
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]>
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.

2 participants