Hi All
whenever I click in settings or when I want to install 3rd party apps, I face this issue
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo16/odoo/odoo/addons/base/models/ir_http\\.py",\\ line\\ 237,\\ in\\ _dispatch
\\ \\ \\ \\ result\\ =\\ request\\.dispatch\\(\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 687,\\ in\\ dispatch
\\ \\ \\ \\ result\\ =\\ self\\._call_function\\(\\*\\*self\\.params\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 359,\\ in\\ _call_function
\\ \\ \\ \\ return\\ checked_call\\(self\\.db,\\ \\*args,\\ \\*\\*kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/service/model\\.py",\\ line\\ 94,\\ in\\ wrapper
\\ \\ \\ \\ return\\ f\\(dbname,\\ \\*args,\\ \\*\\*kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 348,\\ in\\ checked_call
\\ \\ \\ \\ result\\ =\\ self\\.endpoint\\(\\*a,\\ \\*\\*kw\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 910,\\ in\\ __call__
\\ \\ \\ \\ return\\ self\\.method\\(\\*args,\\ \\*\\*kw\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 535,\\ in\\ response_wrap
\\ \\ \\ \\ response\\ =\\ f\\(\\*args,\\ \\*\\*kw\\)
\\ \\ File\\ "/opt/odoo16/odoo/addons/web/controllers/main\\.py",\\ line\\ 1326,\\ in\\ call_kw
\\ \\ \\ \\ return\\ self\\._call_kw\\(model,\\ method,\\ args,\\ kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/addons/web/controllers/main\\.py",\\ line\\ 1318,\\ in\\ _call_kw
\\ \\ \\ \\ return\\ call_kw\\(request\\.env\\[model\\],\\ method,\\ args,\\ kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 462,\\ in\\ call_kw
\\ \\ \\ \\ result\\ =\\ _call_kw_model_create\\(method,\\ model,\\ args,\\ kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 442,\\ in\\ _call_kw_model_create
\\ \\ \\ \\ result\\ =\\ method\\(recs,\\ \\*args,\\ \\*\\*kwargs\\)
\\ \\ File\\ "",\\ line\\ 2,\\ in\\ create
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 391,\\ in\\ _model_create_single
\\ \\ \\ \\ return\\ create\\(self,\\ arg\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/addons/base/models/res_config\\.py",\\ line\\ 784,\\ in\\ create
\\ \\ \\ \\ return\\ super\\(ResConfigSettings,\\ self\\)\\.create\\(values\\)
\\ \\ File\\ "",\\ line\\ 2,\\ in\\ create
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 412,\\ in\\ _model_create_multi
\\ \\ \\ \\ return\\ create\\(self,\\ \\[arg\\]\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/addons/base/models/ir_fields\\.py",\\ line\\ 613,\\ in\\ create
\\ \\ \\ \\ recs\\ =\\ super\\(\\)\\.create\\(vals_list\\)
\\ \\ File\\ "",\\ line\\ 2,\\ in\\ create
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 413,\\ in\\ _model_create_multi
\\ \\ \\ \\ return\\ create\\(self,\\ arg\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/models\\.py",\\ line\\ 4036,\\ 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\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 643,\\ in\\ _handle_exception
\\ \\ \\ \\ return\\ super\\(JsonRequest,\\ self\\)\\._handle_exception\\(exception\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 301,\\ in\\ _handle_exception
\\ \\ \\ \\ raise\\ exception\\.with_traceback\\(None\\)\\ from\\ new_cause
ValueError:\\ Invalid\\ field\\ 'module_om_hr_payroll_account'\\ on\\ model\\ 'res\\.config\\.settings'
RPC_ERROR
Odoo\\ Server\\ Error
Traceback\\ \\(most\\ recent\\ call\\ last\\):
\\ \\ File\\ "/opt/odoo16/odoo/odoo/addons/base/models/ir_http\\.py",\\ line\\ 237,\\ in\\ _dispatch
\\ \\ \\ \\ result\\ =\\ request\\.dispatch\\(\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 687,\\ in\\ dispatch
\\ \\ \\ \\ result\\ =\\ self\\._call_function\\(\\*\\*self\\.params\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 359,\\ in\\ _call_function
\\ \\ \\ \\ return\\ checked_call\\(self\\.db,\\ \\*args,\\ \\*\\*kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/service/model\\.py",\\ line\\ 94,\\ in\\ wrapper
\\ \\ \\ \\ return\\ f\\(dbname,\\ \\*args,\\ \\*\\*kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 348,\\ in\\ checked_call
\\ \\ \\ \\ result\\ =\\ self\\.endpoint\\(\\*a,\\ \\*\\*kw\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 910,\\ in\\ __call__
\\ \\ \\ \\ return\\ self\\.method\\(\\*args,\\ \\*\\*kw\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 535,\\ in\\ response_wrap
\\ \\ \\ \\ response\\ =\\ f\\(\\*args,\\ \\*\\*kw\\)
\\ \\ File\\ "/opt/odoo16/odoo/addons/web/controllers/main\\.py",\\ line\\ 1326,\\ in\\ call_kw
\\ \\ \\ \\ return\\ self\\._call_kw\\(model,\\ method,\\ args,\\ kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/addons/web/controllers/main\\.py",\\ line\\ 1318,\\ in\\ _call_kw
\\ \\ \\ \\ return\\ call_kw\\(request\\.env\\[model\\],\\ method,\\ args,\\ kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 462,\\ in\\ call_kw
\\ \\ \\ \\ result\\ =\\ _call_kw_model_create\\(method,\\ model,\\ args,\\ kwargs\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 442,\\ in\\ _call_kw_model_create
\\ \\ \\ \\ result\\ =\\ method\\(recs,\\ \\*args,\\ \\*\\*kwargs\\)
\\ \\ File\\ "",\\ line\\ 2,\\ in\\ create
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 391,\\ in\\ _model_create_single
\\ \\ \\ \\ return\\ create\\(self,\\ arg\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/addons/base/models/res_config\\.py",\\ line\\ 784,\\ in\\ create
\\ \\ \\ \\ return\\ super\\(ResConfigSettings,\\ self\\)\\.create\\(values\\)
\\ \\ File\\ "",\\ line\\ 2,\\ in\\ create
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 412,\\ in\\ _model_create_multi
\\ \\ \\ \\ return\\ create\\(self,\\ \\[arg\\]\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/addons/base/models/ir_fields\\.py",\\ line\\ 613,\\ in\\ create
\\ \\ \\ \\ recs\\ =\\ super\\(\\)\\.create\\(vals_list\\)
\\ \\ File\\ "",\\ line\\ 2,\\ in\\ create
\\ \\ File\\ "/opt/odoo16/odoo/odoo/api\\.py",\\ line\\ 413,\\ in\\ _model_create_multi
\\ \\ \\ \\ return\\ create\\(self,\\ arg\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/models\\.py",\\ line\\ 4036,\\ 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\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 643,\\ in\\ _handle_exception
\\ \\ \\ \\ return\\ super\\(JsonRequest,\\ self\\)\\._handle_exception\\(exception\\)
\\ \\ File\\ "/opt/odoo16/odoo/odoo/http\\.py",\\ line\\ 301,\\ in\\ _handle_exception
\\ \\ \\ \\ raise\\ exception\\.with_traceback\\(None\\)\\ from\\ new_cause
ValueError:\\ Invalid\\ field\\ 'module_om_hr_payroll_account'\\ on\\ model\\ 'res.config.settings'
If you have installed any custom modules, please uninstall that and try again. If that doesn’t work, try upgrading the base module
I did, but no luck. I already upgraded base module. is that normal that when I upgraded base module, odoo stopped working then I had to restart the odoo service?
Seems the traceback is pointing to one of our apps, did you added the modules correctly to the addons path and restarted the odoo service ?
1. Add om_hr_payroll and om_hr_payroll_account to addons path
2. Restart the service
3. Upgrade the modules and see if you have any issues now
Or on the other way, you can go to the Views menu from settings -> technical -> user interface -> views and search inside the architecture using search view for module_om_hr_payroll_account and delete the corresponding view or line of code containing this reference.