Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2238 Visualizzazioni

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
Abbandona
Risposta migliore

I'm getting the same problem

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
8
feb 19
11254
2
apr 24
1970
1
dic 23
2062
0
mar 22
2
2
giu 20
5771