我使用来自已运行服务器的备份 .zip 文件(包括所有插件)创建了一个新的 Odoo 服务器。原始服务器运行正常,但新服务器显示此错误。新服务器工作正常,没有任何其他问题,但此错误仍然存在。此外,我在恢复弹出窗口中选择了“此数据库是副本”:
这是错误:
2024-12-26 19:07:22,609 818 ERROR test odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/odoo/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/odoo/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/odoo/addons/web/controllers/main.py", line 1342, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/odoo/addons/web/controllers/main.py", line 1334, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo/api.py", line 390, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/odoo/odoo/api.py", line 377, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/odoo/odoo/models.py", line 6277, in onchange
record[name] = value
File "/odoo/odoo/models.py", line 5777, in __setitem__
return self._fields[key].__set__(self, value)
File "/odoo/odoo/fields.py", line 1116, in __set__
self.write(new_records, value)
File "/odoo/odoo/fields.py", line 987, in write
cache_value = self.convert_to_cache(value, records)
File "/odoo/odoo/fields.py", line 2299, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for res.config.settings.module_procurement_jit: 1
该错误表示为
1
设置分配了无效值 (module_procurement_jit
),可能是由于配置错误或缺少模块所致。