İçereği Atla
Menü
This question has been flagged
1 Cevapla
29241 Görünümler

I want to edit the default header & footer of the Invoice PDF reports. The view of the report is calling web.external.layout for header & footer when I try to make changes to the web.external.layout then it is not accepting the changes.

View of Invoice PDF reports is as below.

========================================

<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document">
<xpath expr="//t[@t-call='web.external_layout']" position="replace">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context({'lang': lang})"/>

======================================

it calling web.externa_layout for header & footer.

I really don't know whether it is for header/footer or not. I want to edit the default header & footer and don't want to create a new one.

Currently, I am using Odoo V12.



Avatar
Vazgeç
Best Answer

Hi,

Please try this,

<template id="external_layout_header_inherit_cr" 
            inherit_id="report.external_layout_header">
            <xpath expr="//div[@class='header']" position="replace">
                <div class="header">
                    <!-- code -->
                </div>
            </xpath>
        </template>
        <template id="external_layout_footer_inherit_cr" 
            inherit_id="report.external_layout_footer">
            <xpath expr="//div[@class='footer']" position="replace">
                <div class="footer">
                    <!--  code -->
                </div>
            </xpath>
        </template>
Aswini - iWesabe


Avatar
Vazgeç
Related Posts Cevaplar Görünümler Aktivite
1
Nis 15
4220
4
Tem 20
18010
1
Eki 18
8036
4
Haz 24
1389
2
Mar 24
1806