8000 [IMP] core: support reinit modules · odoo/documentation@0a39de8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a39de8

Browse files
committed
[IMP] core: support reinit modules
1 parent 2d55fe0 commit 0a39de8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

content/developer/reference/backend/orm/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
Changelog
55
=========
66

7+
Odoo Online version 18.4
8+
========================
9+
10+
- The `reinit` option is added to the CLI to reinitialize modules.
11+
See `#206408 <https://github.com/odoo/odoo/pull/206408>`_.
12+
713
Odoo Online version 18.3
814
========================
915

content/developer/reference/cli.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ Running the server
8282
comma-separated list of modules to update before running the server.
8383
Use ``all`` for all modules. (requires :option:`-d`).
8484

85+
.. option:: --reinit <modules>
86+
87+
A comma-separated list of modules to reinitialize before starting the server.
88+
(requires :option:`-d`).
89+
90+
Reinitialization is similar to a simple upgrade without executing any upgrade script.
91+
It loads data in ``init`` mode instead of ``update`` mode, primarily affecting records marked as ``'noupdate'``.
92+
All modules that depend directly or indirectly on the specified ones will also be reinitialized.
93+
94+
This option is intended for debugging or development purposes only.
95+
**Do not use it with a production database.**
96+
8597
.. option:: --addons-path <directories>
8698

8799
comma-separated list of directories in which modules are stored. These

0 commit comments

Comments
 (0)
0