Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1926 Переглядів

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?
Аватар
Відмінити
Найкраща відповідь

I'm getting the same problem

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
8
лют. 19
10967
2
квіт. 24
1736
1
груд. 23
1817
0
бер. 22
2
2
черв. 20
5419