From 096c8704401ba069805a0e75408f8ae00e7f0581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Mangin?= Date: Mon, 24 Aug 2020 13:45:08 +0200 Subject: [PATCH] Revert "[13.0] 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 451d4da..a110351 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.Registry.get(cr.dbname) + registry = odoo.modules.registry.RegistryManager.get(cr.dbname) new_cr = registry.cursor() with closing(new_cr): with odoo.api.Environment.manage():