From 09c2e4a5bca68512be9440df14be3732443548e0 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 22 Sep 2016 16:15:26 +0200 Subject: [PATCH] [FIX] core: fix registry initialisation Registry.init_models now expect a list of model names instead of the models themself. --- odoo/modules/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/modules/registry.py b/odoo/modules/registry.py index 8de7172ae89..9be7fa15ae9 100644 --- a/odoo/modules/registry.py +++ b/odoo/modules/registry.py @@ -234,7 +234,7 @@ class Registry(Mapping): queue = deque(model_names) while queue: model = self[queue.popleft()] - models.add(model) + models.add(model._name) for func in funcs: queue.extend(func(model)) return models