Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2044 มุมมอง

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
11083
Customer Details on the left แก้ไขแล้ว
2
เม.ย. 24
1814
1
ธ.ค. 23
1948
0
มี.ค. 22
2
2
มิ.ย. 20
5535