mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-10-23 14:09:31 +00:00
9 azure backport (#353)
* fix: backport fix + backport modules to azure
This commit is contained in:
1 parent
92bf8210ef
commit
61a7d392ff
19 files changed
+332
-26
No files matched your search
@@ -6,7 +6,7 @@ import inspect
|
||||
import logging
|
||||
import os
|
||||
import psycopg2
|
||||
import odoo
|
||||
import openerp
|
||||
|
||||
from contextlib import closing, contextmanager
|
||||
from openerp import api, exceptions, fields, models, _
|
||||
@@ -208,7 +208,7 @@ class IrAttachment(models.Model):
|
||||
"""
|
||||
with api.Environment.manage():
|
||||
if new_cr:
|
||||
registry = odoo.modules.registry.RegistryManager.get(
|
||||
registry = openerp.modules.registry.RegistryManager.get(
|
||||
self.env.cr.dbname
|
||||
)
|
||||
with closing(registry.cursor()) as cr:
|
||||
|
||||