If any osv_exeption raised from Report Services then it gives a error cause warning type is comes as a tuple instead of str
Bug #941124 reported by
Marek
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
JasperReport Server Connector |
Invalid
|
Undecided
|
Unassigned | ||
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Web Team |
Bug Description
Hi,
when trying to print from Web Client (6.1), following error appears (but works from GTK client):
Client Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP 6.1-1\server\
File "C:\Program Files (x86)\OpenERP 6.1-1\server\
File "C:\Program Files (x86)\OpenERP 6.1-1\server\
File "C:\Program Files (x86)\OpenERP 6.1-1\server\
TypeError: coercing to Unicode: need string or buffer, tuple found
Thanks
Related branches
lp:~openerp-dev/openerp-web/trunk-bug-941124-amp
- Nicolas Vanhoren (OpenERP) (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedaddons/web/common/http.py (+1/-1)
Changed in openerp-web: | |
status: | Confirmed → In Progress |
Changed in openerp-web: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Well, the only thing I can tell from this traceback is that the web client gets an error it can't translate, the code blowing up is:
if isinstance(e, openerp. osv.osv. except_ osv): Fault(' warning -- ' + e.name + '\n\n' + e.value, '')
fault = xmlrpclib.
so either e.name or e.value is a tuple (instead of a str or unicode object) in the except_osv exception. But we've little more in the way of sources, we'd need some more reproduction information (such as the steps which led you to this error). You might also have a more interesting traceback in the server logs.