Odoo Help


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.


odoo email sending not working using template(SO,PO)

Ali Ravani
on 10/7/14, 2:31 PM 2,805 views


can any1 please help me, when i am sending email its not sending its showing error:

Traceback (most recent call last):
  File "/home/openerp/odoo/addons/mail/mail_mail.py", line 254, in send
    ['datas_fname', 'datas'])]
  File "/usr/lib/python2.7/base64.py", line 73, in b64decode
    return binascii.a2b_base64(s)
TypeError: must be string or buffer, not bool

if i send email without using template its working fine.


I think you should ask a better question, maybe add which version you using and any other relevant information.

Rui Andrada
on 10/7/14, 7:23 PM
Rui Andrada
On 10/13/14, 5:10 AM

I got this problem here too, after while searching for a solution... I figured out the problem was with wkhtmltopdf, you have to get install the version 0.12.0 or above, and test if it's  working alone. the current version is 0.12.1.

For me this problem happens because wkhtmltopdf was generating pdf with zero bytes, throwing the error not handled by the code.

To get wkhtmltopdf working, the easy way is to download the lastest version from http://wkhtmltopdf.org/downloads.html

To test if working you can try at command line, preferable no xorg running:

wkhtmltopdf http://www.odoo.com test-odoo.pdf

If xorg running try this:

DISPLAY=  wkhtmltopdf http://www.odoo.com test-odoo.pdf

if you got error "wkhtmltopdf: cannot connect to X server", you have a wrong version of wkhtmltopdf.

After that, if you can create the pdf file from command line you can try to send the email with attachment(if so) again.

Check if pdf file created is ok, go ahead and to test again send email.

I hope help you, comments my answer if you need assistance.

Thanks Rui Andrada , your answer help me lot

Atul Kumar jain
on 11/6/14, 5:00 AM

You're welcome, I do appreciate if you could vote up my answer! thanks

Rui Andrada
on 11/6/14, 10:08 AM

Thanks a lot.its really helps me.

Ali Ravani
on 12/20/14, 4:00 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

2 follower(s)


Asked: 10/7/14, 2:31 PM
Seen: 2805 times
Last updated: 11/11/15, 8:11 AM