Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1910 Представления

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
10957
2
апр. 24
1725
1
дек. 23
1807
0
мар. 22
2
2
июн. 20
5406