Amit Parik (OpenERP) has proposed merging
lp:~openerp-dev/openerp-web/trunk-bug-941124-amp into lp:openerp-web.
Requested reviews:
OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
Bug #941124 in OpenERP Web: "If any osv_exeption raised from Report Services
then it gives a error cause warning type is comes as a tuple instead of str"
https://bugs.launchpad.net/openerp-web/+bug/941124
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-941124-amp/+merge/108120
Hello,
When exception raised from the report service it will gives a error because
value passed as a tuple instead of string.
This fix will solve the problem.
Thanks!
--
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-941124-amp/+merge/108120
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/trunk-bug-941124-amp.
=== modified file 'addons/web/common/http.py'
--- addons/web/common/http.py 2012-02-23 12:32:13 +0000
+++ addons/web/common/http.py 2012-05-31 08:37:22 +0000
@@ -593,7 +593,7 @@
except Exception,e:
# TODO change the except to raise LibException instead of their emulated xmlrpc fault
if isinstance(e, openerp.osv.osv.except_osv):
- fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
+ fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + str(e.value), '')
elif isinstance(e, openerp.exceptions.Warning):
fault = xmlrpclib.Fault('warning -- Warning\n\n' + str(e), '')
elif isinstance(e, openerp.exceptions.AccessError):
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp