Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
429 Tampilan

I want to build a custom header and footer for my Odoo website, completely from scratch, without using any of the default Odoo templates or building blocks. The goal is to have full control over the HTML/CSS structure and design, but also make it dynamic and manageable through the Odoo backend (like the default header/footer).


What I’m looking for:
  • The correct approach to override or replace the default header/footer.
  • How to render dynamic menus in a custom QWeb template.
  • How to structure the custom XML/HTML/SCSS files.
  • Where and how to link the custom header/footer in a theme or module.

Can anyone guide me with steps or share a working example?

Avatar
Buang
Jawaban Terbai

He is not asking for Invoices or Quotations, he wan't to modify the header of the website. I personally want to custom the cart and it is not something easy to do at all...


Avatar
Buang
Jawaban Terbai

To customize the header and footer in Odoo (for reports like invoices, quotations, etc.), follow these steps:

Step-by-Step:

  1. Activate Developer Mode
    Go to Settings → Activate Developer Mode.
  2. Go to Report Templates
    Navigate to Settings → Technical → Views.
  3. Search for the template
    Look for:
    • external_layout_standard (for standard header/footer)
    • Or external_layout if you're using a customized theme
  4. Edit the XML
    Modify the header/footer section using QWeb (XML) tags.
    Example for adding a phone number in the footer:

    xml

    CopyEdit

    <t t-name="your_custom_footer"> <div>Phone: <span t-field="company.phone"/></div> </t>

  5. Save and Test
    • Go to Invoices or Quotations
    • Print a report to check changes

If you're using Studio, you can also customize headers/footers visually in Reporting → Custom Report Layouts.

Let me know if you need the XML sample for specific changes (like logo, address, or styling).

At Wan Buffer Services, we often help startups and enterprises go through this process to avoid common mistakes and get the best ERP fit — especially with solutions like Odoo.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
7
Feb 25
14924
2
Apr 23
3549
3
Mar 23
19363
1
Mar 15
2485
1
Mar 15
4983