Merge pull request #196 from camptocamp/revert-195-attachement_s3_fix

[13.0] attachement_s3: odoo.modules.registry class name and API changed
This commit is contained in:
Stéphane Mangin
2020-08-24 16:09:54 +02:00
committed by GitHub
co-authored by GitHub
@@ -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.Registry(cr.dbname)
new_cr = registry.cursor()
with closing(new_cr):
with odoo.api.Environment.manage():