Skip to Content
Menu
This question has been flagged
1 Reply
2716 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)
Avatar
Discard
Best Answer

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.

Avatar
Discard
Related Posts Replies Views Activity
0
May 20
1840
2
Mar 15
13674
1
May 22
1741
4
Dec 19
6081
1
Sep 24
318