From 63d4e3d62f579b93609c096d50bc34a427a5683f Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Mon, 8 Apr 2019 12:37:08 +0000 Subject: [PATCH] publish muk_web_utils - 12.0 --- muk_web_utils/__manifest__.py | 2 +- muk_web_utils/controllers/attachment.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/muk_web_utils/__manifest__.py b/muk_web_utils/__manifest__.py index b054cbf..cfea871 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.1", + "version": "12.0.2.9.2", "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 651994a..385a789 100644 --- a/muk_web_utils/controllers/attachment.py +++ b/muk_web_utils/controllers/attachment.py @@ -32,6 +32,7 @@ class AttachmentController(http.Controller): @http.route('/utils/attachment/add', type='http', auth="user", methods=['POST']) def add_attachment(self, ufile, temporary=False, **kw): tmp = temporary and str2bool(temporary) or False + name = "Access Attachment: %s" % ufile.filename attachment = request.env['ir.attachment'].create({ 'name': tmp and "%s (Temporary)" % name or name, 'datas': base64.b64encode(ufile.read()),