openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #09592
Re: [Bug 942679] Re: [report_webkit]Cannot print BVR invoices (Swiss version)
> File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 596, in send
> fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
> TypeError: coercing to Unicode: need string or buffer, tuple found
This denotes two bugs :
1. the web client wrongly expects the name and value attributes of a
remote exception to be string. Fixing the code in the web client to
fault = xmlrpclib.Fault('warning -- %s\n\n%s' % (e.name, e.value))
will prevent the TypeError from occuring (as the %s will force the
str() builtin function to be applied to rhs arguments of the % operator)
2. There is an exception occuring on the server side, which the client
fails to properly report because of (1). I expect some traces of that
exception in the server log. Posting such logs would be very useful in
analyzing the root causes of the problems, until (1) is fixed.
--
Alexandre Fayolle
Chef de Projet
Tel : + 33 (0)4 79 26 57 92
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/942679
Title:
[report_webkit]Cannot print BVR invoices (Swiss version)
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Using lates OpenERP 6.1 on Ubuntu 11, 64 bits.
I have an invoice; and i'm trying to "Print BVR invoice" I get :
Client Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 260, in dispatch
r = method(controller, self, **self.params)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1784, in index
req.session._db, req.session._uid, req.session._password, report_id)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 596, in send
fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
TypeError: coercing to Unicode: need string or buffer, tuple found
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/942679/+subscriptions
References