Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5 Vastaukset
14937 Näkymät

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

BR

Ricardo

Avatar
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

Hi,

Please check this free module: Reports with Watermark

Thanks

Avatar
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
lokak. 20
15390
1
lokak. 21
2879
5
tammik. 25
27850
1
huhtik. 21
4238
10
heinäk. 20
19028