reporting-engine icon indicating copy to clipboard operation
reporting-engine copied to clipboard

[14] get_report_xlsx() missing 4 required positional arguments

Open whotopia opened this issue 2 years ago • 1 comments
trafficstars

[14.0] report_xlsx no longer working for me

Module

report_xlsx

Describe the bug

Every time I try to run an Excel report for OCA Reporting General Ledger, I am getting error message.

To Reproduce

Affected versions: Odoo 14.

Steps to reproduce the behavior: In my case it is happening all the time. Likely interaction with something else.

Here's my error message:


Traceback (most recent call last):
  File "/home/odoo/odoo-venv-3.8/lib/python3.8/site-packages/werkzeug/serving.py", line 306, in run_wsgi
    execute(self.server.app)
  File "/home/odoo/odoo-venv-3.8/lib/python3.8/site-packages/werkzeug/serving.py", line 294, in execute
    application_iter = app(environ, start_response)
  File "/home/odoo/src/odoo-14.0-OCB/odoo/service/wsgi_server.py", line 113, in application
    return application_unproxied(environ, start_response)
  File "/home/odoo/src/odoo-14.0-OCB/odoo/service/wsgi_server.py", line 88, in application_unproxied
    result = odoo.http.root(environ, start_response)
  File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 1298, in __call__
    return self.dispatch(environ, start_response)
  File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 1264, in __call__
    return self.app(environ, start_wrapped)
  File "/home/odoo/odoo-venv-3.8/lib/python3.8/site-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
    return self.app(environ, start_response)
  File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 1489, in dispatch
    result = ir_http._dispatch()
  File "/home/odoo/src/odoo-14.0-OCB/addons/website_sale/models/ir_http.py", line 15, in _dispatch
    return super(IrHttp, cls)._dispatch()
  File "/home/odoo/src/odoo-14.0-OCB/addons/website/models/ir_http.py", line 183, in _dispatch
    response = super(Http, cls)._dispatch()
  File "/home/odoo/src/odoo-14.0-OCB/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
    return super(Http, cls)._dispatch()
  File "/home/odoo/src/odoo-14.0-OCB/addons/web_editor/models/ir_http.py", line 21, in _dispatch
    return super(IrHttp, cls)._dispatch()
  File "/home/odoo/src/odoo-14.0-OCB/addons/utm/models/ir_http.py", line 29, in _dispatch
    response = super(IrHttp, cls)._dispatch()
  File "/home/odoo/src/odoo-14.0-OCB/addons/http_routing/models/ir_http.py", line 512, in _dispatch
    result = super(IrHttp, cls)._dispatch()
  File "/home/odoo/src/odoo-14.0-OCB/odoo/addons/base/models/ir_http.py", line 241, in _dispatch
    return cls._handle_exception(e)
  File "/home/odoo/src/odoo-14.0-OCB/addons/utm/models/ir_http.py", line 34, in _handle_exception
    response = super(IrHttp, cls)._handle_exception(exc)
  File "/home/odoo/src/odoo-14.0-OCB/addons/http_routing/models/ir_http.py", line 607, in _handle_exception
    return super(IrHttp, cls)._handle_exception(exception)
  File "/home/odoo/src/odoo-14.0-OCB/odoo/addons/base/models/ir_http.py", line 209, in _handle_exception
    return request._handle_exception(exception)
  File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 757, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
TypeError: get_report_xlsx() missing 4 required positional arguments: 'model', 'options', 'output_format', and 'report_name' - - -

Assistance I did also note that this issue was (seemingly) also reported here and could be similar: https://www.odoo.com/forum/help-1/i-have-an-issue-in-odoo-14-versio-in-generating-the-exel-file-219672

This is probably something to do with some kind of other interaction. Could someone suggest where I might look?

whotopia avatar Oct 19 '23 18:10 whotopia

I don't experiment such problem. Update the code for all sources.

pedrobaeza avatar Nov 21 '23 13:11 pedrobaeza

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar May 26 '24 12:05 github-actions[bot]