From 239717b2933980ce2ef3370723d0c24354cbd30b Mon Sep 17 00:00:00 2001 From: David Vidal Date: Wed, 3 Sep 2025 11:48:29 +0200 Subject: [PATCH] [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. --- content/developer/reference/backend/module.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/developer/reference/backend/module.rst b/content/developer/reference/backend/module.rst index 258dd640d4..ed791d815d 100644 --- a/content/developer/reference/backend/module.rst +++ b/content/developer/reference/backend/module.rst @@ -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