[IMP] core: support reinit modules

closes odoo/documentation#13222

Related: odoo/odoo#206408
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Chong Wang (cwg)
2025-05-06 15:55:23 +02:00
parent 628da5ec00
commit bde3b8fa3e
2 changed files with 18 additions and 0 deletions

View File

@@ -4,6 +4,12 @@
Changelog
=========
Odoo Online version 18.4
========================
- The `reinit` option is added to the CLI to reinitialize modules.
See `#206408 <https://github.com/odoo/odoo/pull/206408>`_.
Odoo Online version 18.3
========================

View File

@@ -82,6 +82,18 @@ Running the server
comma-separated list of modules to update before running the server.
Use ``all`` for all modules. (requires :option:`-d`).
.. option:: --reinit <modules>
A comma-separated list of modules to reinitialize before starting the server.
(requires :option:`-d`).
The reinitialization is similar to a simple upgrade without executing any upgrade script.
It loads data in ``init`` mode instead of ``update`` mode, primarily affecting records marked as ``'noupdate'``.
All modules that depend directly or indirectly on the specified ones will also be reinitialized.
This option is intended for debugging or development purposes only.
**Do not use it with a production database.**
.. option:: --addons-path <directories>
comma-separated list of directories in which modules are stored. These