Merge branch 'mig/13.0/attachment_minio' into '13.0'

mig/13.0/attachment_minio into 13.0

See merge request hibou-io/hibou-odoo/suite!445
This commit is contained in:
Jared Kipe
2020-08-27 16:14:07 +00:00

View File

@@ -22,7 +22,7 @@ def migrate(cr, version):
if row[0] == 's3': if row[0] == 's3':
uid = odoo.SUPERUSER_ID uid = odoo.SUPERUSER_ID
registry = odoo.modules.registry.RegistryManager.get(cr.dbname) registry = odoo.modules.registry.Registry(cr.dbname)
new_cr = registry.cursor() new_cr = registry.cursor()
with closing(new_cr): with closing(new_cr):
with odoo.api.Environment.manage(): with odoo.api.Environment.manage():