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

Hello,

In odoo there is a header configuration to set a report logo there, but I added a new report and I want to make a custom header with another logo image. The question is how to add my image to this custom header?

Note: I want to get the image from the module file instead of calling it from odoo.

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

1. You can do that by storing your image inside the directory  your_module/static/src/img/image_name

2. Inside the header in your qweb , place the below code 

< img src='/module name/static/src/img/image name with extention'/>

Hope it helps,

Thanks

الصورة الرمزية
إهمال
الكاتب

I made this way but then I am getting it as white paper.

Is there any solution?

أفضل إجابة

Hi,


You can take a reference from the below link to make a custom header report

https://www.youtube.com/watch?v=FzNQ6YgwbWM

ref: another question's answer



Thanks & Regards,
Sunny Sheth

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 21
4481
1
مارس 22
4137
0
يونيو 21
9146
1
يناير 20
10070
1
ديسمبر 17
5344