Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
5 Replies
14778 Tampilan

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

BR

Ricardo

Avatar
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

Hi,

Please check this free module: Reports with Watermark

Thanks

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Okt 20
15283
1
Okt 21
2846
5
Jan 25
27692
1
Apr 21
4186
10
Jul 20
18916