콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2141 화면

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
11159
2
4월 24
1901
1
12월 23
2011
0
3월 22
2
2
6월 20
5659