Skip to content

[FIX] module_auto_update: skip db-only modules in checksum computation#3674

Open
joshkreud wants to merge 1 commit into
OCA:19.0from
joshkreud:fix/3360-module-auto-update-studio-customization
Open

[FIX] module_auto_update: skip db-only modules in checksum computation#3674
joshkreud wants to merge 1 commit into
OCA:19.0from
joshkreud:fix/3360-module-auto-update-studio-customization

Conversation

@joshkreud

@joshkreud joshkreud commented Jul 15, 2026

Copy link
Copy Markdown

Modules like studio_customization created by web_studio exist only in the database and have no filesystem directory. Previously, module_auto_update would include them in checksum computation, returning False for the checksum. This caused the first upgrade_changed_checksum() run to detect them as "changed" (False != None) and attempt to mark them for upgrade, which fails since the module has no filesystem path.

This fix adds a _module_exists_on_disk() helper and uses it in both _save_installed_checksums() and _get_modules_with_changed_checksum() to silently skip modules without a filesystem path.

Note: this fix targets 19.0 only. The same regression affects 16.0, 17.0, and 18.0 — backport PRs are needed for those branches.

Fixes #3360

--
I confirm I have read the DCO (https://github.com/OCA/oca-addons-repo-template/blob/master/CONTRIBUTING.md) and signed it off.

@OCA-git-bot OCA-git-bot added series:19.0 mod:module_auto_update Module module_auto_update labels Jul 15, 2026
@joshkreud
joshkreud force-pushed the fix/3360-module-auto-update-studio-customization branch from 78b7012 to 492bb4e Compare July 15, 2026 11:50
@joshkreud
joshkreud marked this pull request as ready for review July 15, 2026 12:00
@joshkreud
joshkreud marked this pull request as draft July 15, 2026 12:01
@joshkreud
joshkreud marked this pull request as ready for review July 15, 2026 12:06
Modules like studio_customization created by web_studio exist only in
the database and have no filesystem directory. Previously, module_auto_update
would include them in checksum computation, returning False for the checksum.
This caused the first upgrade_changed_checksum() run to detect them as
"changed" (False != None) and attempt to mark them for upgrade, which fails
since the module has no filesystem path.

This fix adds _module_exists_on_disk() helper and uses it in both
_save_installed_checksums() and _get_modules_with_changed_checksum()
to silently skip modules without a filesystem path.

Signed-off-by: Joshua Kreuder <Joshua.kreuder@outlook.de>
@joshkreud
joshkreud force-pushed the fix/3360-module-auto-update-studio-customization branch from 47863fd to ef817c0 Compare July 15, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:module_auto_update Module module_auto_update series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants