Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1954 Vizualizări

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?
Imagine profil
Abandonează
Cel mai bun răspuns

I'm getting the same problem

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
8
feb. 19
11003
2
apr. 24
1771
1
dec. 23
1838
0
mar. 22
2
2
iun. 20
5444