Skip to Content
Menu
This question has been flagged
1 Reply
1281 Views

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "C:\Program Files\Odoo 16.0.20221029\server\odoo\http\\.py",\\ line\\ 1547,\\ in\\ _serve_db
\\ \\ \\ \\ return\\ service_model\\.retrying\\(self\\._serve_ir_http,\\ self\\.env\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\service\model\\.py",\\ line\\ 134,\\ in\\ retrying
\\ \\ \\ \\ result\\ =\\ func\\(\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\http\\.py",\\ line\\ 1576,\\ in\\ _serve_ir_http
\\ \\ \\ \\ response\\ =\\ self\\.dispatcher\\.dispatch\\(rule\\.endpoint,\\ args\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\http\\.py",\\ line\\ 1773,\\ in\\ dispatch
\\ \\ \\ \\ result\\ =\\ self\\.request\\.registry\\['ir\\.http'\\]\\._dispatch\\(endpoint\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\base\models\ir_http\\.py",\\ line\\ 140,\\ in\\ _dispatch
\\ \\ \\ \\ result\\ =\\ endpoint\\(\\*\\*request\\.params\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\http\\.py",\\ line\\ 673,\\ in\\ route_wrapper
\\ \\ \\ \\ result\\ =\\ endpoint\\(self,\\ \\*args,\\ \\*\\*params_ok\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\web\controllers\dataset\\.py",\\ line\\ 42,\\ in\\ call_kw
\\ \\ \\ \\ return\\ self\\._call_kw\\(model,\\ method,\\ args,\\ kwargs\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\web\controllers\dataset\\.py",\\ line\\ 33,\\ in\\ _call_kw
\\ \\ \\ \\ return\\ call_kw\\(request\\.env\\[model\\],\\ method,\\ args,\\ kwargs\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\api\\.py",\\ line\\ 461,\\ in\\ call_kw
\\ \\ \\ \\ result\\ =\\ _call_kw_multi\\(method,\\ model,\\ args,\\ kwargs\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\api\\.py",\\ line\\ 448,\\ in\\ _call_kw_multi
\\ \\ \\ \\ result\\ =\\ method\\(recs,\\ \\*args,\\ \\*\\*kwargs\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\hr_timesheet\models\project\\.py",\\ line\\ 354,\\ in\\ write
\\ \\ \\ \\ res\\ =\\ super\\(Task,\\ self\\)\\.write\\(values\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\project_sms\models\project_task\\.py",\\ line\\ 22,\\ in\\ write
\\ \\ \\ \\ res\\ =\\ super\\(\\)\\.write\\(vals\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\project\models\project\\.py",\\ line\\ 2098,\\ in\\ write
\\ \\ \\ \\ result\\ =\\ super\\(Task,\\ tasks\\)\\.write\\(vals\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\mail\models\mail_thread\\.py",\\ line\\ 315,\\ in\\ write
\\ \\ \\ \\ result\\ =\\ super\\(MailThread,\\ self\\)\\.write\\(values\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\mail\models\mail_activity_mixin\\.py",\\ line\\ 241,\\ in\\ write
\\ \\ \\ \\ return\\ super\\(MailActivityMixin,\\ self\\)\\.write\\(vals\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\rating\models\rating_mixin\\.py",\\ line\\ 104,\\ in\\ write
\\ \\ \\ \\ result\\ =\\ super\\(RatingMixin,\\ self\\)\\.write\\(values\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\models\\.py",\\ line\\ 3726,\\ in\\ write
\\ \\ \\ \\ field\\.write\\(self,\\ value\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\fields\\.py",\\ line\\ 4206,\\ in\\ write
\\ \\ \\ \\ return\\ self\\.write_batch\\(\\[\\(records,\\ value\\)\\]\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\fields\\.py",\\ line\\ 4227,\\ in\\ write_batch
\\ \\ \\ \\ return\\ self\\.write_real\\(records_commands_list,\\ create\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\fields\\.py",\\ line\\ 4406,\\ in\\ write_real
\\ \\ \\ \\ flush\\(\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\fields\\.py",\\ line\\ 4368,\\ in\\ flush
\\ \\ \\ \\ comodel\\.create\\(to_create\\)
\\ \\ File\\ "",\\ line\\ 2,\\ in\\ create
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\api\\.py",\\ line\\ 410,\\ in\\ _model_create_multi
\\ \\ \\ \\ return\\ create\\(self,\\ arg\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\project_timesheet_holidays\models\account_analytic\\.py",\\ line\\ 25,\\ in\\ create
\\ \\ \\ \\ has_timeoff_task\\ =\\ self\\.env\\['project\\.task'\\]\\.search_count\\(\\[\\('id',\\ 'in',\\ task_ids\\),\\ \\('is_timeoff_task',\\ '=',\\ True\\)\\],\\ limit=1\\)\\ >\\ 0
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\models\\.py",\\ line\\ 1514,\\ in\\ search_count
\\ \\ \\ \\ res\\ =\\ self\\.search\\(domain,\\ limit=limit,\\ count=True\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\models\\.py",\\ line\\ 1536,\\ in\\ search
\\ \\ \\ \\ res\\ =\\ self\\._search\\(domain,\\ offset=offset,\\ limit=limit,\\ order=order,\\ count=count\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\addons\project\models\project\\.py",\\ line\\ 1902,\\ in\\ _search
\\ \\ \\ \\ return\\ super\\(Task,\\ self\\)\\._search\\(args,\\ offset=offset,\\ limit=limit,\\ order=order,\\ count=count,\\ access_rights_uid=access_rights_uid\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\models\\.py",\\ line\\ 4617,\\ in\\ _search
\\ \\ \\ \\ query\\ =\\ self\\._where_calc\\(domain\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\models\\.py",\\ line\\ 4385,\\ in\\ _where_calc
\\ \\ \\ \\ return\\ expression\\.expression\\(domain,\\ self\\)\\.query
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\osv\expression\\.py",\\ line\\ 447,\\ in\\ __init__
\\ \\ \\ \\ self\\.parse\\(\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\osv\expression\\.py",\\ line\\ 1024,\\ in\\ parse
\\ \\ \\ \\ expr,\\ params\\ =\\ self\\.__leaf_to_sql\\(leaf,\\ model,\\ alias\\)
\\ \\ File\\ "C:\Program\\ Files\Odoo\\ 16\\.0\\.20221029\server\odoo\osv\expression.py", line 1100, in __leaf_to_sql
raise ValueError("Invalid domain term %r" % (leaf,))
ValueError: Invalid domain term ('id', 'in', None)



s there a solution for this problem?

Avatar
Discard
Best Answer

please provide more details about the error you are facing and the code

Avatar
Discard