This question has been flagged
2 Replies
1411 Views

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)

Avatar
Discard
Best Answer

Hi,

Here you are trying to access a single value from a tuple variable "project.project(201,191)" , while there are more than one value in it,

you should loop through this tuple as:

for i in "your_variable":
print(i) or use i for operations

Regards

Avatar
Discard
Best Answer

Refresh the page. This might seem obvious, but if it's a temporary loading issue, you might find success if you refresh the page.
Come back later.
Delete your browser's cookies.

Greetings,
Peter

Avatar
Discard