Browse Source

publish muk_web_utils - 12.0

pull/115/head
MuK IT GmbH 6 years ago
parent
commit
6ab318c0d2
  1. 2
      muk_web_utils/__manifest__.py
  2. 1
      muk_web_utils/controllers/attachment.py

2
muk_web_utils/__manifest__.py

@ -20,7 +20,7 @@
{ {
"name": "MuK Web Utils", "name": "MuK Web Utils",
"summary": """Utility Features""", "summary": """Utility Features""",
"version": "12.0.2.9.3",
"version": "12.0.2.9.4",
"category": "Extra Tools", "category": "Extra Tools",
"license": "AGPL-3", "license": "AGPL-3",
"author": "MuK IT", "author": "MuK IT",

1
muk_web_utils/controllers/attachment.py

@ -40,6 +40,7 @@ class AttachmentController(http.Controller):
'type': 'binary', 'type': 'binary',
'public': False, 'public': False,
'temporary': tmp, 'temporary': tmp,
'mimetype': ufile.mimetype if ufile.mimetype and ufile.mimetype != 'application/octet-stream' else None,
}) })
attachment.generate_access_token() attachment.generate_access_token()
base_url = request.env['ir.config_parameter'].sudo().get_param('web.base.url') base_url = request.env['ir.config_parameter'].sudo().get_param('web.base.url')

Loading…
Cancel
Save