Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
14838 Lượt xem

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

BR

Ricardo

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Please check this free module: Reports with Watermark

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 20
15321
1
thg 10 21
2865
5
thg 1 25
27789
1
thg 4 21
4202
10
thg 7 20
18974