I'm developing with Odoo framework and when I get a binary file value from database I need to download it.
It's any module for doing it with python?
@http.route(['/permissions/print/<int:permission_id>'], type='http', auth="public", website=True)
def print_docr(self, permission_id=None):
perm_id = request.env['res.partner.permission'].sudo().browse(permission_id)
print(perm_id.attachment_doc)
This is the output of the file.
Any suggestion? Thanks for reading!