From 69fdd5a266e6219a04cfd86e268e158b09ad0ffe Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Wed, 22 May 2019 06:41:29 +0000 Subject: [PATCH] publish muk_web_utils - 12.0 --- muk_web_utils/controllers/attachment.py | 1 - 1 file changed, 1 deletion(-) diff --git a/muk_web_utils/controllers/attachment.py b/muk_web_utils/controllers/attachment.py index 0c66986..6db9935 100644 --- a/muk_web_utils/controllers/attachment.py +++ b/muk_web_utils/controllers/attachment.py @@ -49,6 +49,5 @@ class AttachmentController(http.Controller): base_url = request.env['ir.config_parameter'].sudo().get_param('web.base.url') 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) - print(result) return json.dumps(result) \ No newline at end of file