Hello,
I have a problem with "odoo" which means that I can no longer do administrative things.
Now that I have been able to reproduce the problem, I am looking for help here to be able to solve it.
Environment:
Odoo is in version 14 (latest) and runs as a Docker container based on the official Docker image 14.0 from Docker Hub.
* Error Report:
------------------------------------------
Error:
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1389, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 394, in call_kw
result = _call_kw_model_create(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 374, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 323, in _model_create_single
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_config.py", line 783, in create
return super(ResConfigSettings, self).create(values)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 344, in _model_create_multi
return create(self, [arg])
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_fields.py", line 533, in create
recs = super().create(vals_list)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 345, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3825, in create
raise ValueError("Invalid field %r on model %r" % (key, self._name))
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'recaptcha_public_key' on model 'res.config.settings'
------------------------------------------
* Method to reproduce:
* Start Odoo
* Log in as administrator
* Settings > General Settings
* In the "Integrations" section, check the "reCAPTCHA: Easy on Humans, Hard on Bots" box.
* Save
* In the "Integrations" section, deactivate the "reCAPTCHA: Easy on Humans, Hard on Bots" option.
* Save
* Log in to Odoo again.
Now I have the feeling that the google Captcha addon has been removed from the databases or config files, but is still active as a module in Odoo and tries in vain to load its configuration.
Do you have any idea how I can fix this problem?
Regards,
Peter
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
Installing and desinstalling the module google_recaptcha (or checking/unchecking the field on general settings) will cause this error because 2 views created by this module remain on database.
You just need to go technical settings views, look for arch_blob "recaptcha" and you will see 2 remaining views from this module.
Just archive them and it's solved. Views name:
google_recaptcha.assets_frontend
google_recaptcha.res_config_settings_view_form
Many thanks @Ana Juaristi Olalde, the trick solved my problem
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
0
2月 24
|
1096 | ||
|
2
2月 24
|
1437 | ||
|
1
12月 24
|
3853 | ||
|
0
11月 24
|
1596 | ||
|
2
7月 24
|
3247 |
Hi Peter,
we've encountered the same problem with one of our clients. The easiest fix is to do an upgrade of the Website module.
Screenshot: https://i.imgur.com/wgaCgoz.png