Skip to main content
Odoo Community Association

Module Auto Update

Production/Stable License: LGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

This addon provides mechanisms to compute sha1 hashes of installed addons, and save them in the database. It also provides a method that exploits these mechanisms to update a database by upgrading only the modules for which the hash has changed since the last successful upgrade.

As an alternative to this module click-odoo-update can also be integrated in your non-Odoo maintenance tools instead.

Table of contents

Configuration

This module supports the following system parameters:

  • module_auto_update.exclude_patterns: comma-separated list of file name patterns to ignore when computing addon checksums. Defaults to *.pyc,*.pyo,i18n/*.pot,i18n_extra/*.pot,static/*,tests/*. Filename patterns must be compatible with the python fnmatch function.

In addition to the above pattern, .po files corresponding to languages that are not installed in the Odoo database are ignored when computing checksums.

Usage

The main method provided by this module is upgrade_changed_checksum on ir.module.module. It runs a database upgrade for all installed modules for which the hash has changed since the last successful run of this method. On success it saves the hashes in the database.

The first time this method is invoked after installing the module, it runs an upgrade of all modules, because it has not saved the hashes yet. This is by design, priviledging safety. Should this be an issue, the method _save_installed_checksums can be invoked in a situation where one is sure all modules on disk are installed and up-to-date in the database.

To invoke the upgrade mechanism, navigate to Apps menu and use the Auto-Upgrade Modules button, available only in developer mode. Restarting the Odoo instance is highly recommended to minify risk of any possible issues.

Another easy way to invoke this upgrade mechanism is by issuing the following in an Odoo shell session:

env['ir.module.module'].upgrade_changed_checksum()

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • LasLabs

  • Juan José Scarafía

  • Tecnativa

  • ACSONE SA/NV

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/server-tools project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Release files for odoo-addon-module-auto-update 19.0.1.0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-module-auto-update 19.0.1.0.1.3
File Interpreter ABI Platform
odoo_addon_module_auto_update-19.0.1.0.1.3-py3-none-any.whl Python 3 none any Details

Release files / odoo_addon_module_auto_update-19.0.1.0.1.3-py3-none-any.whl

Download URL odoo_addon_module_auto_update-19.0.1.0.1.3-py3-none-any.whl
Size 53.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ff9596eeaccf8bd35ee9bbb135cf1780e5c48f55efb9cee7c1567e75ecc0477
BLAKE2b-256 checksum
How to use checksums
cc01b5cf27d5951c2da935815b99ffe2da68e0b77498c4c0d72aeea042773475
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

19.0.1.0.1.3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page