تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2209 أدوات العرض

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
فبراير 19
11232
2
أبريل 24
1966
1
ديسمبر 23
2049
0
مارس 22
2
2
يونيو 20
5741