[Python] Odoo 18 QWeb Report — How to display Arabic company name next to logo in the header?

Discussão em 'Python' iniciado por Stack, Maio 25, 2025.

  1. Stack

    Stack Membro Participativo

    I'm working on a custom report in Odoo 18. I want to show the company name in Arabic (e.g., "شركة روزنبرج إيجيبت") next to the logo in the top header of the QWeb report.

    The logo is already defined in the company settings and appears in the header.

    I tried adding the company name using XML inheritance, but I got this error:

    Here is a snippet of what I tried:

    <template id="custom_header_with_company_name" inherit_id="web.external_layout">
    <xpath expr="//div[@class='header']" position="inside">
    <div style="text-align: right; font-size: 16px; font-weight: bold;">
    شركة روزنبرج إيجيبت
    </div>
    </xpath>
    </template>

    Continue reading...

Compartilhe esta Página