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

How can I add a watermark (Logo,...) centered in my PDF reports?

BR

Ricardo

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

To achieve this lets go to the settings -> On the company section here we can see the configure layout, as per our requirement we can customize that, it is possible to add logo,background image and different types of paper format




Regards

Imagine profil
Abandonează
Cel mai bun răspuns

You can not use your templates, as the default Odoo reports are written in QWeb. But you can create company report headers and footers. 

Imagine profil
Abandonează
Cel mai bun răspuns

This web helps me with the issue.  Has two examples, text and image:

https://www.excelroot.com/post/how-to-add-watermark-in-the-odoo-report-pdf

Cheers

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Please check this free module: Reports with Watermark

Thanks

Imagine profil
Abandonează
Cel mai bun răspuns

Hi Ricardo,

You can achieve that by customizing your reports by following code.

<div class="watermark_logo" style="position:absolute;opacity:0.30;front-size:8em;width:100%;text-align:center;z-index:100;">
<t t-if='doc.company_id.logo'>
<img t-if="doc.company_id.logo" t-att-src="image_data_uri(doc.company_id.logo)" alt="Logo"/>
</t>
</div>
Regards,
Keyur Makwana.
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
oct. 20
15299
1
oct. 21
2857
5
ian. 25
27760
1
apr. 21
4196
10
iul. 20
18941