[FIX] developer/modules: init/uninstall hooks arguments

Since https://github.com/odoo/odoo/pull/108254 an env is used
directly in the init/uninstall hooks.

closes odoo/documentation#15146

X-original-commit: eae0163257
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
David Vidal
2025-09-03 09:48:29 +00:00
parent f43889f7f3
commit 9678f9e367

View File

@@ -139,13 +139,13 @@ Available manifest fields are:
string representing the name of a function defined inside the module's
``__init__.py``.
``pre_init_hook`` takes a cursor as its only argument, this function is
``pre_init_hook`` takes an env as its only argument, this function is
executed prior to the module's installation.
``post_init_hook`` takes a cursor and a registry as its arguments, this
``post_init_hook`` takes an env as its only argument, this
function is executed right after the module's installation.
``uninstall_hook`` takes a cursor and a registry as its arguments, this
``uninstall_hook`` takes an env as its only argument, this
function is executed after the module's uninstallation.
These hooks should only be used when setup/cleanup required for this module