Odoo Help

1
2
Avatar

Manish Bohra

--Manish Bohra--

784
| 5 3 7
Bikaner, India
--Manish Bohra--


Manish Bohra
On 9/19/18, 2:37 AM

Hello

You can try below code i think it's help you

<img t-if="obj.company_id.extra_logo"
t-att-src="'data:image/png;base64,%s' % obj.company_id.extra_logo"
style="max-width: 40px; max-height: 20px;"/>
1
Mitul Shingala
On 10/8/18, 3:26 AM

Hello 

try below code,

<t t-if="obj.company_id.extra_logo">
<img t-att-src="'data:image/png;base64,%s' % to_text(obj.company_id.extra_logo)" style="max-height:1cm; max-width:4cm;"/>
</t>
0
Rakesh Vadeghar
On 9/19/18, 1:03 AM

hey try this

store your image in web/static/src/img

<img src="http://localhost:8069/web/static/src/img/your_logo.jpg" width="180" height="150" />

you can also try this

<img t-attf-src="data:image/*;base64,{{company.logo}}" t-att-alt="company.name" style="max-height: 100px;"/> 



About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/18/18, 6:35 AM
Seen: 193 times
Last updated: 10/8/18, 3:26 AM