Skip to Content
Menu
This question has been flagged
3 Replies
4455 Views

Hi all odoo developers, I want to set image on email template to send to client. I try to code as below :

<field name="body_html"><![CDATA[
<div style="padding:0px;width:600px;margin:auto;background: #FFFFFF repeat top /100%;color:#777777">
<img src="data:image/png;base64,${object.company_id.logo}" style="width: 150px;height: 80px;" />
</div>
<div style="padding:0px;width:600px;margin:auto;background: #FFFFFF repeat top /100%;color:#777777"><p>Hello World</p></div>
]]></field> 
in model="mail.template" . But it is not work....
Avatar
Discard

Are you getting any error or what?

Author

Hi Sudhir Arya , My error is dont see image on email after sending email success.

Best Answer

Hi,

Are you using multi-database in your Odoo server host? If yes add the option dbfilter=^my_database$ in your Odoo configuration file.

Best regards!

Avatar
Discard