Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

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

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
qwebreportwkhtmltopdfodoo
4 Replies
54581 Rodiniai
Portretas
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
Portretas
Atmesti
Portretas
Yenthe Van Ginneken (Mainframe Monkey)
Best Answer

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
Portretas
Atmesti
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">

--%>
Portretas
Anil Kesariya
Best Answer

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
Portretas
Atmesti
Ankit H Gandhi(AHG)

Thanks @ Anil Kesariya for given more information.

Portretas
samba
Best Answer

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
Portretas
Atmesti
Portretas
Zbik
Best Answer

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

0
Portretas
Atmesti
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.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registracija
Related Posts Replies Rodiniai Veikla
Put the name of a select field in a qweb report
qweb report odoo
Portretas
Portretas
Portretas
Portretas
3
gruod. 24
6342
Report text and header is overlaps when description is too long in QWeb report line.
qweb report wkhtmltopdf
Portretas
Portretas
1
vas. 24
3982
Expect singleton: res.currency[SOLVED] Solved
qweb report odoo
Portretas
Portretas
Portretas
2
birž. 23
5706
Pass result from SQL Query to Qweb Report
qweb report odoo
Portretas
0
kov. 22
3128
How to groups the same value name on QWEB Report Odoo ??
qweb report odoo
Portretas
0
rugp. 21
5914
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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