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

Error printing invoices Odoo 9c

By
Lorenzo
on 5/11/16, 8:08 PM 268 views

Hi all, after updating Odoo 9c with a git pull I got this error and I can't print with PDF any invoices.

With the HTML format I can see the invoices.

What can I do?

Thanks!!

2016-05-11 23:58:08,482 8876 ERROR odoo werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/opt/odoo/openerp/service/server.py", line 246, in app
return self.app(e, s)
File "/opt/odoo/openerp/service/wsgi_server.py", line 184, in application
return application_unproxied(environ, start_response)
File "/opt/odoo/openerp/service/wsgi_server.py", line 170, in application_unproxied
result = handler(environ, start_response)
File "/opt/odoo/openerp/http.py", line 1488, in __call__
return self.dispatch(environ, start_response)
File "/opt/odoo/openerp/http.py", line 1462, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in __call__
return self.app(environ, start_response)
File "/opt/odoo/openerp/http.py", line 1652, in dispatch
result = ir_http._dispatch()
File "/opt/odoo/addons/utm/models/ir_http.py", line 13, in _dispatch
response = super(ir_http, self)._dispatch()
File "/opt/odoo/addons/web_editor/models/ir_http.py", line 16, in _dispatch
return super(ir_http, self)._dispatch()
File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 186, in _dispatch
return self._handle_exception(e)
File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 157, in _handle_exception
return request._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 781, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 182, in _dispatch
result = request.dispatch()
File "/opt/odoo/openerp/http.py", line 840, in dispatch
r = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 316, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 309, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 959, in __call__
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 509, in response_wrap
response = f(*args, **kw)
TypeError: report_download() takes exactly 3 arguments (1 given)
0
Gustavo Hinojosa
On 5/12/16, 3:00 PM

a tu funcion falta cr, uid, ids

ejemplo

@api.multi

def _imprimir_recibo_recepcion(self):

return self.env['report'].get_action(self, 'module.id_xml_report')

def evaluacion_prod(self, cr, uid, ids, context=None):

return self._imprimir_recibo_recepcion(cr, uid, ids, context=None)

hope you it help.

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: 5/11/16, 8:08 PM
Seen: 268 times
Last updated: 5/12/16, 3:00 PM