[FIX] attachement_s3: odoo.modules.registry class name changed

This commit is contained in:
Stéphane Mangin committed 2020-08-24 12:11:33 +02:00
1 parent 298050ba52
commit 1069c8f932
1 file changed
+1 -1
@@ -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():
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.