跳至內容
選單
此問題已被標幟
1 回覆
1992 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
8
2月 19
11025
2
4月 24
1792
1
12月 23
1895
0
3月 22
2
2
6月 20
5474