# HG changeset patch
# User Cédric Krier <ced@b2ck.com>
# Date 1707134375 -3600
#      Mon Feb 05 12:59:35 2024 +0100
# Node ID c9bdfcee4e2cfbd7838aa52b829347c1947d4d21
# Parent  950c99dfc8b3e7851e0a438b3fb39355986d5de0
Restore passing activatedeps to load_modules when initialize to Pool

e00d867eda85 removed the argument.

Closes #13000

diff --git a/trytond/trytond/pool.py b/trytond/trytond/pool.py
--- a/trytond/trytond/pool.py
+++ b/trytond/trytond/pool.py
@@ -167,7 +167,7 @@
             try:
                 restart = not load_modules(
                     self.database_name, self, update=update, lang=lang,
-                    indexes=indexes)
+                    activatedeps=activatedeps, indexes=indexes)
             except Exception:
                 del self._pool[self.database_name]
                 self._modules = None