Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profit organisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

How to add custom footer in invoice Qweb printouts of Odoo?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
qwebreportwkhtmltopdfodoo
4 Antwoorden
54582 Weergaven
Avatar
Gopakumar N G

I have inherited the `account.report_invoice_document` and added a footer after the 

    <div class="page">

    ...........................

    .............................

    ............................

    </div>

    <div class="footer">

    ............................

    </div>

 

But in the report, the footer is missing. How to add custom footer in invoice reports made of Qweb in Odoo?

1
Avatar
Annuleer
Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Beste antwoord

Why don't you modify the existing footer template or create a second one which you only use in this report?
You can do this under report/views/layouts.xml. Here is the template for the default footer and header.
You have four options:

  1. Modify existing footer (addons/report/views/layouts.xml)
  2. Create a new footer template (addons/report/views/layouts.xml)
  3. Add the code directly in your report.
  4. Use the default HTML field for a custom footer under your company settings.

Default footer:

<template id="invoice_layout_footer">
    <div class="footer">
        <div class="text-center" style="border-top: 1px solid black;">
            <ul t-if="not company.custom_footer" class="list-inline">
                <li t-if="company.phone">Phone: <span t-field="company.phone"/></li>

                <li t-if="company.fax and company.phone">&amp;bull;</li>
                <li t-if="company.fax">Fax: <span t-field="company.fax"/></li>

                <li t-if="company.email">&amp;bull;</li>
                <li t-if="company.email">Email: <span t-field="company.email"/></li>

                <li t-if="company.website">&amp;bull;</li>
                <li t-if="company.website">Website: <span t-field="company.website"/></li>
            </ul>

            <t t-if="company.custom_footer">
                <span t-raw="company.rml_footer"/>
            </t>

            <ul class="list-inline">
                <li>Page:</li>
                <li><span class="page"/></li>
                <li>/</li>
                <li><span class="topage"/></li>
            </ul>
        </div>
    </div>      
</template>

You could choose to modify this one or you could create a second one. For example:

<template id="external_layout_footer">
    <div class="footer">
        <div class="text-center" style="border-top: 1px solid black;">
            <ul t-if="not company.custom_footer" class="list-inline">
                <li t-if="company.phone">E-mail: <span t-field="company.email"/></li>

            </ul>
        </div>
    </div>      
</template>

You could then call report.external_layout_footer in your report. Or you could directly add this code in your current invoice.

3
Avatar
Annuleer
Alfa y Omega Pachuca

why i can not add a img to the footer? i have a module this is my code: <xpath expr="//div[@class='footer']" position="replace">

Alfa y Omega Pachuca
<xpath expr="//div[@class='footer']" position="replace">
Alfa y Omega Pachuca

    
		
            <xpath expr="//div[@class='footer']" position="replace">
				
Alfa y Omega Pachuca

<%-- <xpath expr="//div[@class='footer']" position="replace">

--%>
Avatar
Anil Kesariya
Beste antwoord

Hello Gopakumar,

The Yenthe's answer is corret. for header tempalte. I would give you brief explaination on this.

In the addons you will find report module. In that all the header footer templates are defined. you can take reference from there.

path : addons/report/views/layout.xml  (All the report layouts are defined in this file.)

Either You can override the existing tempalte like xml record or Define your template for header and footer above on your report and give reference in place of "report.external_layout" template.

Simply you can apply bootstrap css classes for your header and footer on your custom template.

Hope This will clear more regarding header and footer.

Regards,

Anil.

 

 

 

 

5
Avatar
Annuleer
Ankit H Gandhi(AHG)

Thanks @ Anil Kesariya for given more information.

Avatar
samba
Beste antwoord

I have followed these steps but not working in odoo-8. Can any one help me https://www.odoo.com/forum/help-1/question/why-invoice-footer-not-showing-in-the-report-81492

0
Avatar
Annuleer
Avatar
Zbik
Beste antwoord

You go to Settnings/Companies, select comapny and Report Configuration. Check Custom Footer and in Report Footer you include your html code.

0
Avatar
Annuleer
Anil Kesariya

This doesn't reflect with odoo v8. We need to override the existing template for header footer or we have to add our own template for footer and header in qweb.

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Put the name of a select field in a qweb report
qweb report odoo
Avatar
Avatar
Avatar
Avatar
3
dec. 24
6345
Report text and header is overlaps when description is too long in QWeb report line.
qweb report wkhtmltopdf
Avatar
Avatar
1
feb. 24
3984
Expect singleton: res.currency[SOLVED] Opgelost
qweb report odoo
Avatar
Avatar
Avatar
2
jun. 23
5706
Pass result from SQL Query to Qweb Report
qweb report odoo
Avatar
0
mrt. 22
3128
How to groups the same value name on QWEB Report Odoo ??
qweb report odoo
Avatar
0
aug. 21
5914
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now