openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #08326
[Bug 942679] Re: Cannot print BVR invoices (Swiss version)
Hello,
The whole traceback is follow.
2012-03-01 06:34:49,715 2954 ERROR ? openerp.service.web_services: Exception: [Errno 2] No such file or directory: '/tmp/webkit.tmp.MwOUvU.pdf'
Traceback (most recent call last):
File "/home/amp/workspace/trunk6/server/openerp/service/web_services.py", line 710, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/home/amp/workspace/trunk6/addons/report_webkit/webkit_report.py", line 325, in create
result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context)
File "/home/amp/workspace/trunk6/server/openerp/report/report_sxw.py", line 511, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/home/amp/workspace/trunk6/addons/l10n_ch/report/report_webkit_html.py", line 313, in create_single_pdf
pdf = self.generate_pdf(bin, report_xml, head, foot, htmls)
File "/home/amp/workspace/trunk6/addons/report_webkit/webkit_report.py", line 174, in generate_pdf
pdf = file(out_filename, 'rb').read()
IOError: [Errno 2] No such file or directory: '/tmp/webkit.tmp.MwOUvU.pdf'
2012-03-01 06:34:50,221 2954 ERROR ? openerp.netsvc: 2
No such file or directory
(<type 'exceptions.IOError'>, IOError(2, 'No such file or directory'), <traceback object at 0xa4f21e4>)
2012-03-01 06:34:50,223 2954 INFO ? werkzeug: 127.0.0.1 - - [01/Mar/2012 06:34:50] "POST /xmlrpc/report HTTP/1.0" 500 -
2012-03-01 06:34:50,228 2954 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/werkzeug/serving.py", line 159, in run_wsgi
execute(app)
File "/usr/local/lib/python2.6/dist-packages/werkzeug/serving.py", line 146, in execute
application_iter = app(environ, start_response)
File "/home/amp/workspace/trunk6/server/openerp/wsgi/core.py", line 397, in application
result = handler(environ, start_response)
File "/home/amp/workspace/trunk6/server/openerp/wsgi/core.py", line 222, in wsgi_xmlrpc_legacy
return xmlrpc_return(start_response, path, method, params, True)
File "/home/amp/workspace/trunk6/server/openerp/wsgi/core.py", line 83, in xmlrpc_return
response = xmlrpc_handle_exception_legacy(e)
File "/home/amp/workspace/trunk6/server/openerp/wsgi/core.py", line 124, in xmlrpc_handle_exception_legacy
fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
TypeError: coercing to Unicode: need string or buffer, tuple found
So the problem comes form report_webkit module. That's why I am assigning this to related author.
Thank you!
** Summary changed:
- Cannot print BVR invoices (Swiss version)
+ [report_webkit]Cannot print BVR invoices (Swiss version)
** Changed in: openobject-addons
Importance: Undecided => Medium
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Assignee: (unassigned) => Nicolas Bessi - Camptocamp (nbessi-c2c)
--
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