Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1878 Zobrazení

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
Zrušit
Nejlepší odpověď

I'm getting the same problem

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
8
úno 19
10917
2
dub 24
1693
1
pro 23
1776
0
bře 22
2
2
čvn 20
5366