This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from odoo import models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
def _retrieve_image_src_and_mimetype(self):
self.ensure_one()
if info := self._get_download_info():
return {'url': info['url'], 'mimetype': self.mimetype}
return super()._retrieve_image_src_and_mimetype()