mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] attachment_minio: Odoo registry class name change
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user