Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1900 Widoki

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?
Awatar
Odrzuć
Najlepsza odpowiedź

I'm getting the same problem

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
8
lut 19
10950
2
kwi 24
1714
1
gru 23
1793
0
mar 22
2
2
cze 20
5389