Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
14794 Zobrazení

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

BR

Ricardo

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

Hi,

Please check this free module: Reports with Watermark

Thanks

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
říj 20
15292
1
říj 21
2851
5
led 25
27738
1
dub 21
4191
10
čvc 20
18924