Skip to content

Commit 753ad42

Browse files
committed
[FIX] developer/modules: init/uninstall hooks arguments
Since odoo/odoo#108254 an env is used directly in the init/uninstall hooks. closes #15141 X-original-commit: eae0163 Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
1 parent 9548ae4 commit 753ad42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/developer/reference/backend/module.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ Available manifest fields are:
139139
string representing the name of a function defined inside the module's
140140
``__init__.py``.
141141

142-
``pre_init_hook`` takes a cursor as its only argument, this function is
142+
``pre_init_hook`` takes an env as its only argument, this function is
143143
executed prior to the module's installation.
144144

145-
``post_init_hook`` takes a cursor and a registry as its arguments, this
145+
``post_init_hook`` takes an env as its only argument, this
146146
function is executed right after the module's installation.
147147

148-
``uninstall_hook`` takes a cursor and a registry as its arguments, this
148+
``uninstall_hook`` takes an env as its only argument, this
149149
function is executed after the module's uninstallation.
150150

151151
These hooks should only be used when setup/cleanup required for this module

0 commit comments

Comments
 (0)