تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5 الردود
14824 أدوات العرض

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
أكتوبر 20
15305
1
أكتوبر 21
2859
5
يناير 25
27770
1
أبريل 21
4199
10
يوليو 20
18964