mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 16:48:36 +00:00
Merge pull request #195 from StephaneMangin/attachement_s3_fix
[13.0] attachement_s3: odoo.modules.registry class name changed
This commit is contained in:
@@ -23,7 +23,7 @@ def migrate(cr, version):
|
|||||||
|
|
||||||
if row[0] == 's3' and bucket:
|
if row[0] == 's3' and bucket:
|
||||||
uid = odoo.SUPERUSER_ID
|
uid = odoo.SUPERUSER_ID
|
||||||
registry = odoo.modules.registry.RegistryManager.get(cr.dbname)
|
registry = odoo.modules.registry.Registry.get(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():
|
||||||
|
|||||||
Reference in New Issue
Block a user