Browse Source

Update main.py

pull/6/head
Mathias Markl 7 years ago
committed by GitHub
parent
commit
cc8a9866a5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      muk_fields_lobject/controllers/main.py

2
muk_fields_lobject/controllers/main.py

@ -46,7 +46,7 @@ class LargeObjectController(http.Controller):
'/web/lobject/<int:id>/<string:filename>',
'/web/lobject/<string:model>/<int:id>/<string:field>',
'/web/lobject/<string:model>/<int:id>/<string:field>/<string:filename>'], type='http', auth="public")
def content_common(self, xmlid=None, model='ir.attachment', id=None, field='datas', filename=None,
def content_lobject(self, xmlid=None, model='ir.attachment', id=None, field='datas', filename=None,
filename_field='datas_fname', mimetype=None, download=None, access_token=None):
obj = None
if xmlid:

Loading…
Cancel
Save