From 1069c8f9322dea92a8fd9fb3f437db3b66a6e0c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Mangin?= Date: Mon, 24 Aug 2020 12:09:25 +0200 Subject: [PATCH] [FIX] attachement_s3: odoo.modules.registry class name changed --- attachment_s3/migrations/13.0.0.0.1/post-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachment_s3/migrations/13.0.0.0.1/post-migration.py b/attachment_s3/migrations/13.0.0.0.1/post-migration.py index a110351..451d4da 100644 --- a/attachment_s3/migrations/13.0.0.0.1/post-migration.py +++ b/attachment_s3/migrations/13.0.0.0.1/post-migration.py @@ -23,7 +23,7 @@ def migrate(cr, version): if row[0] == 's3' and bucket: uid = odoo.SUPERUSER_ID - registry = odoo.modules.registry.RegistryManager.get(cr.dbname) + registry = odoo.modules.registry.Registry.get(cr.dbname) new_cr = registry.cursor() with closing(new_cr): with odoo.api.Environment.manage():