Skip to Content
मेन्यू
This question has been flagged
1 Reply
2083 Views

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
Discard
Best Answer

I'm getting the same problem

Avatar
Discard
Related Posts Replies Views Activity
8
फ़र॰ 19
11113
2
अप्रैल 24
1846
1
दिस॰ 23
1977
0
मार्च 22
2
2
जून 20
5603