Skip to Content
Menu
This question has been flagged
1 Atsakyti
1937 Rodiniai

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?
Portretas
Atmesti
Best Answer

I'm getting the same problem

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
8
vas. 19
10987
2
bal. 24
1756
1
gruod. 23
1834
0
kov. 22
2
2
birž. 20
5432