Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. Auto-Upgrade Modules on Restart v 19.0
  4. Sales Conditions FAQ

Auto-Upgrade Modules on Restart

by Odoo Craft
Odoo

$ 7.06

v 19.0 Third Party 3
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 50
Technical Name odoocraft_autoupgrade_modules
LicenseAGPL-3
Versions 16.0 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 50
Technical Name odoocraft_autoupgrade_modules
LicenseAGPL-3
Versions 16.0 17.0 18.0 19.0

Auto-Upgrade Modules

Bump the version. Restart. Done.
No more forgotten --update flags. Automatic module upgrades on every restart.

Odoo 19 Docker-compatible Zero boilerplate Custom modules

The Problem Every Developer Knows

You updated your module — added a new field, changed a view, ran a migration script. You restart Odoo and… nothing. The migration didn't run. The field isn't in the database. The UI looks wrong. You spent 10 minutes debugging before realizing you forgot to pass --update=my_module.

In Docker environments it gets worse: the restart script doesn't include -u, the CI pipeline doesn't know which modules changed, and teams rely on tribal knowledge to remember which modules need manual updating.

The solution is simple.

This module watches the version field in every installed module's __manifest__.py. On each server start, if the on-disk version doesn't match what's stored in the database, the module is automatically queued for upgrade — with zero manual intervention.

How It Works

1
You change a module version in __manifest__.py
Increment the version field as part of your normal development workflow.
'version': '19.0.1.2.0',  # was 19.0.1.1.0
2
Restart Odoo (or let Docker restart it)
No extra flags, no additional scripts, no manual steps.
3
The module detects the version mismatch at startup
Before Odoo loads the registry, the module compares on-disk versions against ir.module.module and marks changed modules as to upgrade.
4
Odoo runs the upgrade automatically
All migration scripts execute, views refresh, field changes apply — exactly as if you had passed --update=my_module.

Key Features

  • Detects version changes in all installed custom modules
  • Works at server startup — before any HTTP request is served
  • Compatible with Docker, Kubernetes, and any deployment pipeline
  • Handles multi-database setups (each DB checked independently)
  • Safe: if the database isn't initialized yet, startup proceeds normally
  • Detailed startup log: shows exactly which modules were queued
  • Works with PreforkServer (production) and ThreadedServer (dev)
  • Zero dependencies beyond Odoo base
  • Enabled/disabled via a single config flag — no code changes needed
  • Module itself auto-upgrades when its own version changes
  • No UI or views — purely server-side, no performance overhead

Who Is This For

Development teams

Stop wasting time restarting Odoo twice because you forgot -u. Version your modules as you build them and let restarts handle upgrades automatically.

DevOps & Docker deployments

In containerized environments, your entrypoint command is usually a fixed odoo --config /etc/odoo/odoo.conf. This module makes that command smart enough to upgrade modules on its own whenever code changes land.

CI/CD pipelines

Remove the need to detect which modules changed between deployments. Just bump versions as part of your release process and let Odoo handle the rest on startup.

Odoo partners managing multiple client instances

Deploy a new version of your custom module across multiple client databases. All instances self-upgrade on the next restart without any per-instance manual commands.

Configuration

Two lines in odoo.conf. That's it.

Add the following to your odoo.conf:

[options]
server_wide_modules = web,odoocraft_autoupgrade_modules
trigger_update_via_version = True

The server_wide_modules line ensures the module is loaded at server startup (before any database is initialized). The trigger_update_via_version flag acts as a kill-switch — set it to False to disable auto-upgrade without uninstalling the module.

Docker example — your docker-compose.yml:

services:
  web:
    image: odoo:19.0
    volumes:
      - ./my_modules:/mnt/extra-addons
      - ./odoo.conf:/etc/odoo/odoo.conf
    command: odoo --config /etc/odoo/odoo.conf

No extra flags needed. The module handles the rest on each restart.

Screenshots

Step 1 — Bump the version in the manifest

Change module version in manifest

Step 2 — Restart the server

Restart Odoo server

Step 3 — Upgrade runs automatically

Upgrade process in progress

Step 4 — Done. Module is up to date.

Module upgraded successfully

Support

Have a question or found an issue? We respond quickly.

panmasiunas@gmail.com

Please include your Odoo version, server type (threaded / prefork / Docker), and the relevant section of your odoo.conf.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with