Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
5 Antwoorden
15031 Weergaven

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

BR

Ricardo

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Beste antwoord

Hi,

Please check this free module: Reports with Watermark

Thanks

Avatar
Annuleer
Beste antwoord

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.
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
okt. 20
15478
1
okt. 21
2937
5
jan. 25
27977
1
apr. 21
4348
10
jul. 20
19160