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

TypeError: Expected bytes While printing Any Report Using Client Database in OpenERP 7.0

By
Dasadiya Chaitanya
on 10/29/15, 4:00 AM 346 views

I am using Client Database and it will restored successfully in my local system and working fine but when I am printing any report the within that database at that time.

I got the below traceback from the terminal.

Traceback (most recent call last):

File "/home/best/workspace/dynaweld/web/addons/web/http.py", line 285, in dispatch

r = method(self, **self.params)

File "/home/best/workspace/dynaweld/web/addons/web/controllers/main.py", line 1769, in index

cookies={'fileToken': int(token)})

File "/home/best/workspace/dynaweld/web/addons/web/http.py", line 332, in make_response

response.set_cookie(k, v)

File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.4-py2.7.egg/werkzeug/wrappers.py", line 1008, in set_cookie

self.charset))

File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.4-py2.7.egg/werkzeug/http.py", line 920, in dump_cookie

value = to_bytes(value, charset)

File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.4-py2.7.egg/werkzeug/_compat.py", line 106, in to_bytes

raise TypeError('Expected bytes')

TypeError: Expected bytes

I have tried the following way to resolve above issue but I have not yet succeed.

1.try remove the unwanted data from my local client database  remove the all the data of  mail.message object.

2. remove all the unnecessary database from my system and using only 2-3 database for my OpenERP Server Run.

3.clean my pc for unwanted files and other detail which was not relevant for my database.

4.I have also check with my enough memory space but I have that enough space  for restoring that database file.

Can any one help me how can i fix this issue.





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: 10/29/15, 4:00 AM
Seen: 346 times
Last updated: 10/29/15, 4:01 AM