Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Add logo's company in QWEB report saleorder

Avatar
odoo
Avatar
Discard
4 Answers
0
Avatar
odoo
Best Answer
<div style="width: 45%;">
<img t-att-src="image_data_uri(o.company_id.logo)"/></div>
Avatar
Discard
0
Avatar
odoo
Best Answer

You can use doc.company_id or res_company for company logo:

Like

<img t-if="res_company.logo" t-att-src="'data:image/png;base64,%s' %res_company.logo"/>
OR
<img t-if="doc.company_id.logo" t-att-src="'data:image/png;base64,%s' %doc.company_id.logo"/>

1 Comment
Avatar
Discard
Avatar
odoo
-

In your code, <t tcall="report.external_layout"> replace with <t t-call="report.external_layout">

0
Avatar
odoo
Best Answer

Hi,

You can add the company logo to report using this,

<div style="width: 45%;float: left;">
    <img src='/web/binary/company_logo' style="width:100%"/>
</div>
Avatar
Discard
0
Avatar
odoo
Best Answer

Thanks a lot, 

works all solutions!!!

Enjoy!!!

Avatar
Discard