Browse Source

publish muk_web_utils - 12.0

pull/115/head
MuK IT GmbH 6 years ago
parent
commit
3413bf79c3
  1. 2
      muk_web_utils/__manifest__.py
  2. 4
      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.0",
"version": "12.0.2.9.1",
"category": "Extra Tools", "category": "Extra Tools",
"license": "AGPL-3", "license": "AGPL-3",
"author": "MuK IT", "author": "MuK IT",

4
muk_web_utils/controllers/attachment.py

@ -46,7 +46,3 @@ class AttachmentController(http.Controller):
result['url'] = '%s/web/content/%s?access_token=%s' % (base_url, attachment.id, attachment.access_token) result['url'] = '%s/web/content/%s?access_token=%s' % (base_url, attachment.id, attachment.access_token)
return json.dumps(result) 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())
Loading…
Cancel
Save