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()),