Odoo Help

2

How to insert image from openerp into email template?

By
Tomas Parnarauskas
on 7/31/13, 11:40 AM 5,384 views

How to insert image that is attached inside some record. For example company logo that is attached to your company form. The path to it would be (if using from res.partner) object.company_id.logo. But using it like another field, just gives binary sequence. How to use it in a way that binary sequence shows normal image?

P.S. adding image from url is easy, but I need to add image from openerp itself.

0

Yogesh

--Yogesh--
812
| 4 3 8
Delhi, India
--Yogesh--

Nothing to say .... :)

Yogesh
On 10/6/14, 5:27 PM

Insert the tag in template

<p> <img src="data:image/png;base64,${object.company_id.logo}" style="width: 150px;height: 80px;" /> </p>

Can you tell me how to add static image to the template?

ajeeb
on 10/17/14, 8:18 AM

You can add just like stated above.

Yogesh
on 10/17/14, 8:19 AM

There is a problem with a such type of image. Some email service or email clients doesn't show such images.

Ivan Yelizariev
on 12/17/14, 5:26 PM

Is it working for odoo 9? I tried this in odoo 9 but in mail image is not loaded. It shows some broken icon.

CatsandDogs
on 3/4/16, 1:29 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

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

2 follower(s)

Stats

Asked: 7/31/13, 11:40 AM
Seen: 5384 times
Last updated: 3/16/15, 8:10 AM