Odoo Help

Welcome!

This community 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.

0

Add a logo inside the email signature

By
Selverine
on 7/18/15, 10:38 AM 634 views

Hi everyone,


I would like to know if it is possible to add a logo inside the email signature?

To do it, I created a field to add a picture and I try to add my logo inside the email, but it is not working.

I can only see the encoded code but not the picture (R0lGODlhEgIOAfcAAMOuI9O+NamZKW92L8uyFLu...)


 signature_logo =msg.author_id.user_ids[0].signature_logo or ''
if signature_logo:
body_html = tools.append_content_to_html(body_html, signature_logo, plaintext=True, container_tag='div')

Somone has an idea please?

Thank you a lot,


Selverine

1

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 7/19/15, 1:32 AM

Selverine,

You must add this binary data into an HTML tag. Also, the plaintext should be False, try by it.

So, singature_add  = '<br />&lt;img src="data:image/jpg;base64, %s">  % (singature_logo)

Then,

body_html = tools.append_content_to_html(body_html, signature_add,.....)

Hope this helps.

Thanks.

Hi, Thank you for your help. It doesn't consider it as HTML tag, so I have:
<img src="data:image/jpg;base64, %R0lGODlhEgIOAfcAAMOuI9O+NamZKW92L8uyFLu... Inside my email. Is it a problem of tools.append_content_to_html you think? Thank you a lot for your help. Selverine PS: Do you provide helps for developer too? My ERP is quite ready but I have few questions like this one ( You will be paid for sure).

Selverine
on 7/22/15, 3:32 AM

What error do you get? Selverine, yes we do! Reach us on contact@serpentcs.com. Thanks.

Serpent Consulting Services Pvt. Ltd.
on 7/22/15, 8:24 AM

Selverine, did you manage to get it done?

Serpent Consulting Services Pvt. Ltd.
on 9/3/15, 10:17 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 7/18/15, 10:38 AM
Seen: 634 times
Last updated: 7/19/15, 1:32 AM