Hello Odoo Community,
I received the following error message when I open up the projects. Please let me know how to solve this problem? Thanks a lot!
Error:
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\models\.py",\ line\ 4859,\ in\ search_read
\ \ \ \ result\ =\ records\.read\(fields\)
\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\models\.py",\ line\ 3020,\ in\ read
\ \ \ \ self\._read\(stored_fields\)
\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\models\.py",\ line\ 3166,\ in\ _read
\ \ \ \ field\.read\(fetched\)
\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\fields\.py",\ line\ 3166,\ in\ read
\ \ \ \ group\[get_id\(line\[inverse\]\)\]\.append\(line\.id\)
\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\models\.py",\ line\ 5661,\ in\ __int__
\ \ \ \ return\ self\.id\ or\ 0
\ \ File\ "C:\Program\ Files\Odoo\ 14\.0\.20220420\server\odoo\fields\.py",\ line\ 3818,\ in\ __get__
\ \ \ \ raise\ ValueError\("Expected\ singleton:\ %s"\ %\ record\)
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
ValueError: Expected singleton: project.project(201, 191)