From edeb21c8fa45c481d5e0c95db73a8c2e20c45868 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Thu, 27 Aug 2020 09:06:04 -0700 Subject: [PATCH] [FIX] attachment_minio: Odoo registry class name change --- attachment_minio/migrations/13.0.0.0.1/post-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachment_minio/migrations/13.0.0.0.1/post-migration.py b/attachment_minio/migrations/13.0.0.0.1/post-migration.py index fefe6dbf..068cdab0 100644 --- a/attachment_minio/migrations/13.0.0.0.1/post-migration.py +++ b/attachment_minio/migrations/13.0.0.0.1/post-migration.py @@ -22,7 +22,7 @@ def migrate(cr, version): if row[0] == 's3': uid = odoo.SUPERUSER_ID - registry = odoo.modules.registry.RegistryManager.get(cr.dbname) + registry = odoo.modules.registry.Registry(cr.dbname) new_cr = registry.cursor() with closing(new_cr): with odoo.api.Environment.manage():