Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
2623 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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...


Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
7
lip 25
17781
2
kwi 23
4261
3
mar 23
21213
1
mar 15
2928
1
mar 15
5387