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

Hello All,

Someone can help to hide Odoo invoice header and footer in v17 Enterprise ?

I proceeded as usually by comment this xml tag (<t t-call="web.external_layout">). However ce the layout of the report is affected and not useble.


Is there some modules to use or approriate configuration to do please ?



Ange


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

Hi,

Use t-call options to disable header and footer


Instead of commenting out the external layout, pass these context variables when calling it:


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

    <t t-set="no_header" t-value="True"/>

    <t t-set="no_footer" t-value="True"/>

    <!-- Your report content here -->

</t>


no_header and no_footer are respected by web.external_layout template, and will safely hide header/footer while keeping the layout intact.


Hope it helps.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أغسطس 25
304
0
يوليو 25
553
2
يونيو 25
611
4
مايو 25
1740
0
مايو 25
827