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

Hi,

I have inherited the base report template for sale and purchase and calling custom template in that. but when I try to print the report I am getting the blank PDF report their in no error and warning in the logs.

Why PDF are blank could anyone help me resolve this issue.

Thanks in advance!

الصورة الرمزية
إهمال
أفضل إجابة

Can I see your code?

I had the same issue because I forgot to add 

<t t-call="web.external_layout">

before my code

الصورة الرمزية
إهمال
الكاتب

Here is the code

<template id="custom_report_saleorder" inherit_id="sale.report_saleorder">

<xpath expr="//t[@t-call='web.html_container']" position="replace">

<t t-call="web.html_container">

<t t-foreach="docs" t-as="doc">

<t t-if=condition>

<t t-call="tmodule_name.template_id1" t-lang="doc.partner_id.lang"/>

</t>

<t t-if="condition>

<t t-call="module_name.template_id2" t-lang="doc.partner_id.lang"/>

</t>

</t>

</t>

</t>

</xpath>

</template>

another template

<template id="template_id1">

<t t-call="web.external_layout">

<----- code---->

</t>

</template>

i have the same issue. but in my code, there exists <t t-call="web.external_layout">. Can you help me on it.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 20
3541
1
أكتوبر 24
7782
1
مايو 19
3989
1
يونيو 20
4701
1
سبتمبر 21
3965