What does "pdf, _ = ..." mean (Odoo 11) in this controller?
# odoo\addons\website_sale\controllers\main.py
@http.route(['/shop/print'], type='http', auth="public", website=True)
def print_saleorder(self):
sale_order_id = request.session.get('sale_last_order_id')
if sale_order_id:
pdf, _ = request.env.ref('sale.action_report_saleorder').sudo().render_qweb_pdf([sale_order_id])
pdfhttpheaders = [('Content-Type', 'application/pdf'), ('Content-Length', u'%s' % len(pdf))]
return request.make_response(pdf, headers=pdfhttpheaders)
else:
return request.redirect('/shop')
If I remove the " , _ " and leave only the variable "pdf = ...", the download of any report in Odoo website doesn't work.
I'd like to understand what it stands for.