Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
14991 มุมมอง

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

BR

Ricardo

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Please check this free module: Reports with Watermark

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ต.ค. 20
15434
1
ต.ค. 21
2897
5
ม.ค. 25
27924
1
เม.ย. 21
4279
Extend footer in website layout แก้ไขแล้ว
10
ก.ค. 20
19091