Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1102 Vizualizări

Hi,

I’m using Odoo Online and need help with the PDF Quote Builder in Odoo. How can I hide the footer( Footer pages ) when generating quotations while keeping it visible for invoices?

Any guidance on implementing this conditionally in the XML view would be appreciated.

Thanks!

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,


Go to:

Settings > Technical > Views


Search for:

report_saleorder_document


Open the view and locate the root tag:


<t t-call="web.external_layout">


Modify it like this to conditionally hide the footer for quotations:


    <t t-call="web.external_layout">

        <t t-set="no_header" t-value="False"/>

        <t t-set="no_footer" t-value="True if doc.state in ['draft', 'sent'] else False"/>

        <!-- Your quotation report content here -->


    </t>


Explanation:


    doc.state in ['draft', 'sent'] > Targets quotations only.


    For confirmed sales orders or invoices, the footer will remain visible.


This change ensures the footer is hidden only in the PDF for quotations but not for invoices or confirmed sales orders.


Hope it helps.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
dec. 24
1419
2
iul. 24
4854
3
ian. 24
13367
1
mar. 15
4101
1
mar. 15
4028