mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -06:00
commit
8da55915df
@ -8,6 +8,6 @@ class IrAttachment(models.Model):
|
|||||||
_inherit = "ir.attachment"
|
_inherit = "ir.attachment"
|
||||||
|
|
||||||
def _compute_mimetype(self, values):
|
def _compute_mimetype(self, values):
|
||||||
if values.get("url"):
|
if values.get("url") and values.get("type", "url") == "url":
|
||||||
return "application/link"
|
return "application/link"
|
||||||
return super()._compute_mimetype(values)
|
return super()._compute_mimetype(values)
|
||||||
|
Loading…
Reference in New Issue
Block a user