|
@ -48,9 +48,6 @@ class LargeObjectController(http.Controller): |
|
|
'/web/lobject/<string:model>/<int:id>/<string:field>/<string:filename>'], type='http', auth="public") |
|
|
'/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_common(self, xmlid=None, model='ir.attachment', id=None, field='datas', filename=None, |
|
|
filename_field='datas_fname', mimetype=None, download=None, access_token=None): |
|
|
filename_field='datas_fname', mimetype=None, download=None, access_token=None): |
|
|
|
|
|
|
|
|
print(model, id, field, filename, filename_field) |
|
|
|
|
|
|
|
|
|
|
|
obj = None |
|
|
obj = None |
|
|
if xmlid: |
|
|
if xmlid: |
|
|
obj = request.env.ref(xmlid, False) |
|
|
obj = request.env.ref(xmlid, False) |
|
|