Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2197 Widoki

Hello Odoo Community:

   Please let me know how to fix this error; thanks a lot!

Odoo Server Error


Traceback (most recent call last):

File "C:\Program Files\Odoo 14.0.20220420\server\odoo\addons\base\models\ir_http\.py",\ line\ 237,\ in\ _dispatch

\ \ \ \ result\ =\ request\.dispatch\(\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\http\.py",\ line\ 685,\ in\ dispatch

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

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\http\.py",\ line\ 361,\ in\ _call_function

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

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\service\model\.py",\ line\ 94,\ in\ wrapper

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

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\http\.py",\ line\ 349,\ in\ checked_call

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

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\http\.py",\ line\ 914,\ in\ __call__

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

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\http\.py",\ line\ 533,\ in\ response_wrap

\ \ \ \ response\ =\ f\(\*args,\ \*\*kw\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\addons\web\controllers\main\.py",\ line\ 1352,\ in\ search_read

\ \ \ \ return\ self\.do_search_read\(model,\ fields,\ offset,\ limit,\ domain,\ sort\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\addons\web\controllers\main\.py",\ line\ 1371,\ in\ do_search_read

\ \ \ \ return\ Model\.web_search_read\(domain,\ fields,\ offset=offset,\ limit=limit,\ order=sort\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\addons\web\models\models\.py",\ line\ 62,\ in\ web_search_read

\ \ \ \ records\ =\ self\.search_read\(domain,\ fields,\ offset=offset,\ limit=limit,\ order=order\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\addons\account\models\account_move\.py",\ line\ 3800,\ in\ search_read

\ \ \ \ return\ super\(AccountMoveLine,\ self\.with_context\(domain_cumulated_balance=to_tuple\(domain\ or\ \[\]\),\ order_cumulated_balance=order\)\)\.search_read\(domain,\ fields,\ offset,\ limit,\ order\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\models\.py",\ line\ 4859,\ in\ search_read

\ \ \ \ result\ =\ records\.read\(fields\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\models\.py",\ line\ 3022,\ in\ read

\ \ \ \ return\ self\._read_format\(fnames=fields,\ load=load\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\models\.py",\ line\ 3042,\ in\ _read_format

\ \ \ \ vals\[name\]\ =\ convert\(record\[name\],\ record,\ use_name_get\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\fields\.py",\ line\ 2687,\ in\ convert_to_read

\ \ \ \ return\ \(value\.id,\ value\.sudo\(\)\.display_name\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\fields\.py",\ line\ 1021,\ in\ __get__

\ \ \ \ self\.compute_value\(recs\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\fields\.py",\ line\ 1177,\ in\ compute_value

\ \ \ \ records\._compute_field_value\(self\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\addons\base_automation\models\base_automation\.py",\ line\ 363,\ in\ _compute_field_value

\ \ \ \ return\ _compute_field_value\.origin\(self,\ field\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\addons\mail\models\mail_thread\.py",\ line\ 410,\ in\ _compute_field_value

\ \ \ \ return\ super\(\)\._compute_field_value\(field\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\models\.py",\ line\ 4069,\ in\ _compute_field_value

\ \ \ \ getattr\(self,\ field\.compute\)\(\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\models\.py",\ line\ 1728,\ in\ _compute_display_name

\ \ \ \ names\ =\ dict\(self\.name_get\(\)\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\addons\account\models\account_move\.py",\ line\ 2058,\ in\ name_get

\ \ \ \ name\ =\ move\._get_move_display_name\(show_ref=True\)

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\addons\account\models\account_move\.py",\ line\ 2281,\ in\ _get_move_display_name

\ \ \ \ return\ \(draft_name\ or\ self\.name\)\ \+\ \(show_ref\ and\ self\.ref\ and\ '\ \(%s%s\)'\ %\ \(self\.ref\[:50\],\ '\.\.\.'\ if\ len\(self\.ref\)\ >\ 50\ else\ ''\)\ or\ ''\)

Exception


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


Traceback\ \(most\ recent\ call\ last\):

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\http\.py",\ line\ 641,\ in\ _handle_exception

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

\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\http.py", line 317, in _handle_exception

raise exception.with_traceback(None) from new_cause

TypeError: unsupported operand type(s) for +: 'bool' and 'str'​

Awatar
Odrzuć
Najlepsza odpowiedź

HI,

There is no information provided about how to reproduce the error.  If you are getting this error from invoicing dashboard just pull the latest version of odoo source code and try with it.

Such a traceback is recently fixed in the core. If this doesn't solve your issue, please provide the steps to reproduce the same in standard version of odoo community.


Make sure custom codes are not causing any issues.


Thanks

Awatar
Odrzuć
Autor

Thank you so much for your reply. Because I am not the operator, I am guessing that it might be caused by an incorrect correlation between customer and supplier's AR and AP accounts. I am trying to delete that transaction from the list view; but because of this error, I cannot delete it that way. Is there anyway I can circumpass that error? Thanks a lot!

Powiązane posty Odpowiedzi Widoki Czynność
2
lut 24
24798
1
lip 22
3028
0
lip 23
156
2
kwi 24
29095
5
mar 20
20671