今天,我安装了 Odoo 16 社区版的全新副本。在会计模块中设置基本内容后,我开始设置员工模块。定义部门和职位后,我开始添加员工..然后我开始为员工添加合同..不幸的是我收到了一个错误,我在互联网上的所有论坛上搜索但没有运气。
每次我尝试保存合同时,在填写每个字段后,我都会收到以下弹出窗口。我也尝试填写合同中的基本必填字段..我得到同样的错误:
Traceback (most recent call last):
File "C:\Program Files\Odoo16\server\odoo\http.py", line 1578, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "C:\Program Files\Odoo16\server\odoo\service\model.py", line 134, in retrying
result = func()
File "C:\Program Files\Odoo16\server\odoo\http.py", line 1607, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "C:\Program Files\Odoo16\server\odoo\http.py", line 1804, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "C:\Program Files\Odoo16\server\odoo\addons\website\models\ir_http.py", line 227, in _dispatch
response = super()._dispatch(endpoint)
File "C:\Program Files\Odoo16\server\odoo\addons\base\models\ir_http.py", line 140, in _dispatch
result = endpoint(**request.params)
File "C:\Program Files\Odoo16\server\odoo\http.py", line 698, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "C:\Program Files\Odoo16\server\odoo\addons\web\controllers\dataset.py", line 42, in call_kw
return self._call_kw(model, method, args, kwargs)
File "C:\Program Files\Odoo16\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\Odoo16\server\odoo\api.py", line 459, in call_kw
result = _call_kw_model_create(method, model, args, kwargs)
File "C:\Program Files\Odoo16\server\odoo\api.py", line 439, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "<decorator-gen-218>", line 2, in create
File "C:\Program Files\Odoo16\server\odoo\api.py", line 409, in _model_create_multi
return create(self, [arg])
File "C:\Program Files\Odoo16\server\odoo\addons\hr_contract\models\hr_contract.py", line 259, in create
contracts = super().create(vals_list)
File "<decorator-gen-142>", line 2, in create
File "C:\Program Files\Odoo16\server\odoo\api.py", line 410, in _model_create_multi
return create(self, arg)
File "C:\Program Files\Odoo16\server\odoo\addons\mail\models\mail_thread.py", line 258, in create
threads = super(MailThread, self).create(vals_list)
File "<decorator-gen-65>", line 2, in create
File "C:\Program Files\Odoo16\server\odoo\api.py", line 410, in _model_create_multi
return create(self, arg)
File "C:\Program Files\Odoo16\server\odoo\addons\base\models\ir_fields.py", line 665, in create
recs = super().create(vals_list)
File "<decorator-gen-13>", line 2, in create
File "C:\Program Files\Odoo16\server\odoo\api.py", line 410, in _model_create_multi
return create(self, arg)
File "C:\Program Files\Odoo16\server\odoo\models.py", line 3884, in create
raise ValueError("Invalid field %r on model %r" % (key, self._name))
ValueError: Invalid field 'analytic_precision' on model 'hr.contract'
如前所述,每次我尝试保存合同时,填写每个字段后,我都会弹出相同的错误窗口