module_auto_update
This module provides mechanisms to compute SHA-1 hashes of installed Odoo addons and save them in the database, enabling automatic updates of modules only when their content has changed.
Key Features
- ir.module.module: Computes SHA-1 checksums for installed modules based on their file contents, excluding specified patterns and uninstalled language files.
- ir.module.module: Saves computed checksums of installed modules to the database for future comparison.
- ir.module.module: Identifies modules with changed checksums since the last successful upgrade.
- ir.module.module: Provides a method to upgrade only modules whose checksums have changed, ensuring efficient updates.
- ir.module.module: Handles the first run by upgrading all modules and saving their checksums.
- ir.module.module: Ensures upgrade completeness by checking for any modules left in transitional states.
- configuration: Supports configurable exclude patterns for checksum computation via system parameters.
- configuration: Automatically excludes .po files for languages not installed in the database.
- UI: Adds an "Auto-Upgrade Modules" button in the Apps menu for developers to trigger the upgrade process.
- CLI: Allows invoking the upgrade mechanism through Python code in an Odoo shell session.