Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2046 Tampilan

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
Buang
Jawaban Terbai

I'm getting the same problem

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
8
Feb 19
11085
2
Apr 24
1814
1
Des 23
1950
0
Mar 22
2
2
Jun 20
5538