Skip to Content
Menu
This question has been flagged
2057 Views

Hi everyone, 

I keep getting the Error above whenever I try to acess customer invoices. Can anyone please help?

Thank you very much. 

Fehler:

Odoo Server Error



Traceback (most recent call last):

File "/home/odoo/odoo-14/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

result = request.dispatch()

File "/home/odoo/odoo-14/odoo/http.py", line 684, in dispatch

result = self._call_function(**self.params)

File "/home/odoo/odoo-14/odoo/http.py", line 360, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/odoo/odoo-14/odoo/service/model.py", line 94, in wrapper

return f(dbname, *args, **kwargs)

File "/home/odoo/odoo-14/odoo/http.py", line 348, in checked_call

result = self.endpoint(*a, **kw)

File "/home/odoo/odoo-14/odoo/http.py", line 913, in __call__

return self.method(*args, **kw)

File "/home/odoo/odoo-14/odoo/http.py", line 532, in response_wrap

response = f(*args, **kw)

File "/home/odoo/odoo-14/addons/web/controllers/main.py", line 1740, in load

action = request.env[action_type].sudo().browse([action_id]).read()

File "/home/odoo/odoo-14/odoo/addons/base/models/ir_actions.py", line 250, in read

values['help'] = self.with_context(**ctx).env[model].get_empty_list_help(values.get('help', ''))

Exception



The above exception was the direct cause of the following exception:



Traceback (most recent call last):

File "/home/odoo/odoo-14/odoo/http.py", line 640, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/odoo/odoo-14/odoo/http.py", line 316, in _handle_exception

raise exception.with_traceback(None) from new_cause

Avatar
Discard
Author

TypeError: odoo.models.BaseModel.with_context() argument after ** must be a mapping, not tuple

This is the last line. It seems as if I missed in when I copied the Error...

are using any custom codes ?

Author

Yes, we do. A developer did some coding for us to adapt fields, forms and reports. Might this be the problem?

"TypeError: odoo.models.BaseModel.with_context() argument after ** must be a mapping, not tuple"

Based on the line you provided above, I assume that some of the process in BaseModel (invoicing module) are fail proceeding iteration of tuples because it expect a mapping and returning a tuple instead.

Can you provide us what was the last time you did before having this error? Did you do a changes in the system or something?

Related Posts Replies Views Activity
2
Dec 19
7142
1
Nov 24
537
1
Nov 23
9146
1
Sep 19
2734