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.


Internal Server Error ir.attachment

Drees Far
on 10/8/15, 5:44 AM 378 views

Hello everybody :)

I am using the ir.attachment module.

SO i am creating my own document and then i automatically add it to the attachment by this way:


files = open(filename,'rb').read()

print files



'index_content': files,

'datas_fname': "image_name",


# 'partner_id':ids[0],





And, unfortunately i have got this error:

Internal Server Error

{"message": "OpenERP WebClient Error", "code": 300, "data": {"debug": "Client Traceback (most recent call last):\n File \"/opt/openerp/v7/addons/web/http.py\", line 285, in dispatch\n r = method(self, **self.params)\n File \"/opt/openerp/v7/addons/web/controllers/main.py\", line 1286, in saveas\n filecontent = base64.b64decode(res.get(field, ''))\n File \"/usr/lib/python2.7/base64.py\", line 73, in b64decode\n return binascii.a2b_base64(s)\nTypeError: must be string or buffer, not bool\n", "type": "client_exception"}}

Can anyone help please :/


on 10/8/15, 6:33 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)


Asked: 10/8/15, 5:44 AM
Seen: 378 times
Last updated: 10/8/15, 6:33 AM