fix: remove deprecated useless function (#446)

This commit is contained in:
Vincent Renaville
2023-11-14 10:21:51 +01:00
committed by GitHub
co-authored by GitHub
parent b9cbf71b55
commit 59059f4344
@@ -260,7 +260,6 @@ class IrAttachment(models.Model):
Using a new Odoo Environment thus a new PG transaction.
"""
with api.Environment.manage():
if new_cr:
registry = odoo.modules.registry.Registry.new(self.env.cr.dbname)
with closing(registry.cursor()) as cr: