I have odoo 12 community edition
How to add an image in the header in purchase quotation and sale order pdf reports
and also add a background image in the body of the reports
please help me to fix this...
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have odoo 12 community edition
How to add an image in the header in purchase quotation and sale order pdf reports
and also add a background image in the body of the reports
please help me to fix this...
Hi,
There are lot of samples for the same inside the odoo itself. To add the image in header you can see how the company logo is shown in the report header.
For adding image to report, try this:
<span t-field="line.image" t-options='{"widget": "image"}'/>
or
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" class="float-left" alt="Logo"/>
Also you can check this video, in it, it is showing how to add image in pdf report: How To Create PDF Report in Odoo
Thanks
Hi,
By using the following code you can add image located in your directory
<img src='/module_name/static/src/img/name of image file' style="your custom style"/>
Add background image in pdf report
View similar forum post before
https://www.odoo.com/forum/help-1/question/display-image-in-qweb-report-76746
Hope it helps
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 12 18
|
5442 | ||
Can't see my report in list
Đã xử lý
|
|
1
thg 1 20
|
3770 | |
|
1
thg 5 19
|
3243 | ||
|
4
thg 6 24
|
1378 | ||
Wrong PDF Format
Đã xử lý
|
|
2
thg 3 24
|
1781 |