Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.signature_logo or ''
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,
You must add this binary data into an HTML tag. Also, the plaintext should be False, try by it.
So, singature_add = '<br /><img src="data:image/jpg;base64, %s"> % (singature_logo)
body_html = tools.append_content_to_html(body_html, signature_add,.....)
Hope this helps.
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 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
|Asked: 7/18/15, 10:38 AM|
|Seen: 676 times|
|Last updated: 7/19/15, 1:32 AM|