Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
5 Відповіді
14903 Переглядів

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
15384
1
жовт. 21
2875
5
січ. 25
27835
1
квіт. 21
4236
10
лип. 20
19005