From 3413bf79c34808fa64bf596a96e5a071dd1a3fcb Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Mon, 8 Apr 2019 12:32:40 +0000 Subject: [PATCH] publish muk_web_utils - 12.0 --- muk_web_utils/__manifest__.py | 2 +- muk_web_utils/controllers/attachment.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/muk_web_utils/__manifest__.py b/muk_web_utils/__manifest__.py index 2ca05d3..b054cbf 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.0", + "version": "12.0.2.9.1", "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 54c9ab1..651994a 100644 --- a/muk_web_utils/controllers/attachment.py +++ b/muk_web_utils/controllers/attachment.py @@ -45,8 +45,4 @@ class AttachmentController(http.Controller): result = attachment.read(['name', 'datas_fname', 'mimetype', 'checksum', 'access_token'])[0] result['url'] = '%s/web/content/%s?access_token=%s' % (base_url, attachment.id, attachment.access_token) return json.dumps(result) - - @http.route('/utils/attachment/remove', type='http', auth="user", methods=['DELETE']) - def remove_attachment(self, id, **kw): - return json.dumps(request.env['ir.attachment'].browse(id).unlink()) \ No newline at end of file