コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5 返信
15033 ビュー

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.
アバター
破棄
関連投稿 返信 ビュー 活動
2
10月 20
15478
1
10月 21
2937
5
1月 25
27978
1
4月 21
4349
10
7月 20
19160