mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 08:47:40 +00:00
9 azure backport (#353)
* fix: backport fix + backport modules to azure
This commit is contained in:
co-authored by
GitHub
parent
92bf8210ef
commit
61a7d392ff
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user