Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
29239 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 15
4220
4
lug 20
18010
1
ott 18
8035
4
giu 24
1388
2
mar 24
1806