Merge PR #2624 into 16.0

Signed-off-by legalsylvain
pull/2538/merge
OCA-git-bot 2023-05-18 08:28:24 +00:00
commit aa5fc6f30d
1 changed files with 13 additions and 12 deletions

View File

@ -15,6 +15,7 @@ class RegistryPatch(OdooPatch):
method_names = ["init_models"]
def init_models(self, cr, model_names, context, install=True):
if "module" in context:
module_name = context["module"]
_logger.debug("Logging models of module %s", module_name)
upg_registry = current_thread()._upgrade_registry