[FIX] upgrade_analysis : avoid KeyError "module"
Check "module" is in context when patching init_modelspull/2624/head
parent
89f8e7b56f
commit
250fbe2d4e
|
@ -15,6 +15,7 @@ class RegistryPatch(OdooPatch):
|
||||||
method_names = ["init_models"]
|
method_names = ["init_models"]
|
||||||
|
|
||||||
def init_models(self, cr, model_names, context, install=True):
|
def init_models(self, cr, model_names, context, install=True):
|
||||||
|
if "module" in context:
|
||||||
module_name = context["module"]
|
module_name = context["module"]
|
||||||
_logger.debug("Logging models of module %s", module_name)
|
_logger.debug("Logging models of module %s", module_name)
|
||||||
upg_registry = current_thread()._upgrade_registry
|
upg_registry = current_thread()._upgrade_registry
|
||||||
|
|
Loading…
Reference in New Issue