Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
778 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
7
feb 25
15387
2
abr 23
3660
3
mar 23
19740
1
mar 15
2528
1
mar 15
5044