Merge PR #405 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot 2023-03-08 15:25:26 +00:00
commit c9da3092fd

View File

@ -8,6 +8,6 @@ class IrAttachment(models.Model):
_inherit = "ir.attachment"
def _compute_mimetype(self, values):
if values.get("url"):
if values.get("url") and values.get("type", "url") == "url":
return "application/link"
return super()._compute_mimetype(values)