跳至內容
選單
此問題已被標幟
2 回覆
3069 瀏覽次數

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
5月 21
3886
1
3月 22
3615
0
6月 21
8374
1
1月 20
9410
1
12月 17
4859