diff --git a/muk_web_utils/__manifest__.py b/muk_web_utils/__manifest__.py index 0cdf751..b797103 100644 --- a/muk_web_utils/__manifest__.py +++ b/muk_web_utils/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Web Utils", "summary": """Utility Features""", - "version": "12.0.2.9.3", + "version": "12.0.2.9.4", "category": "Extra Tools", "license": "AGPL-3", "author": "MuK IT", diff --git a/muk_web_utils/controllers/attachment.py b/muk_web_utils/controllers/attachment.py index 385a789..2dd7a64 100644 --- a/muk_web_utils/controllers/attachment.py +++ b/muk_web_utils/controllers/attachment.py @@ -40,6 +40,7 @@ class AttachmentController(http.Controller): 'type': 'binary', 'public': False, 'temporary': tmp, + 'mimetype': ufile.mimetype if ufile.mimetype and ufile.mimetype != 'application/octet-stream' else None, }) attachment.generate_access_token() base_url = request.env['ir.config_parameter'].sudo().get_param('web.base.url')