Skip to Content
Menú
This question has been flagged
1 Respondre
2200 Vistes

This is my current code to get invoice pdf report at '/api/'

invoice = request.env['account.move'].sudo().search([('id','=',invoice_id)])

report_ref = request.env.ref('account.account_invoices')
pdf_content, content_type = request.env['ir.actions.report'].sudo()._render_qweb_pdf(report_ref, [invoice_id])


the pdf is not generating to return. how can i solve this?
Avatar
Descartar
Best Answer

I'm getting the same problem

Avatar
Descartar
Related Posts Respostes Vistes Activitat
8
de febr. 19
11229
2
d’abr. 24
1966
1
de des. 23
2048
0
de març 22
2
2
de juny 20
5731