Unable to view Registry records in QA instances
Describe the bug An odoo error appears when opening records in registry be it viewing an existing registry or creating a new one.
To Reproduce Context: the QA instance has its image updated but no DB reset was made. this issue is reproducible only if the DB has not been reset during image update.
- Login as admin into QA SPMIS or QA Farmer instances
- Go to registry
- Select either group or individual then click on any record to view. Notice an odoo error appears.
- Attempt to create a record by clicking NEW button. Notice an odoo error appears.
Error log
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 1788, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/odoo/odoo/http.py", line 1816, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo/odoo/http.py", line 2020, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 221, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo/odoo/http.py", line 757, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo/addons/web/controllers/dataset.py", line 28, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:2929:163)
at XMLHttpRequest.
Expected behavior Should be able to create record from either group or individual when updating the instance. Should be able to view record either from group or individual when updating the instance. Screenshots
Additional context
🔔 Note: This ticket should address common considerations without including country-specific content. Please ensure all references are generic and applicable across various contexts.
PR: https://github.com/OpenSPP/openg2p-registry/pull/5
This is ready to be re-tested in the instances mentioned above as the fix in OpenSPP/openg2p-registry was merged on March 10, 2025.
Hi @kneckinator , i tested in QA SPMIS and it seems ok, however it still is not working for QA farmer registry generic, it is displaying a different error instead.
Creating or viewing a group or individual produces the error below:
UncaughtPromiseError > OwlError Uncaught Promise > An error occured in the owl lifecycle (see this Error's "cause" property) OwlError: An error occured in the owl lifecycle (see this Error's "cause" property) Error: An error occured in the owl lifecycle (see this Error's "cause" property) at handleError (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:925:101) at App.handleError (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:1576:29) at ComponentNode.initiateRender (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:1017:19)
Caused by: Error: "res.partner"."marital_status" field is undefined. at Field.parseFieldNode (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:7751:231) at https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:8639:865 at visit (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:4286:51) at visitChildren (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:4285:171) at visit (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:4286:129) at visitChildren (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:4285:171) at visit (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:4286:129) at visitChildren (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:4285:171) at visit (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:4286:129) at visitChildren (https://qa-farmer.newlogic.net/web/assets/9557ced/web.assets_web.min.js:4285:171)
Context: the QA instance has its image updated but no DB reset was made. this issue is reproducible only if the DB has not been reset during image update.
Could it be that no DB migration was taking place as part of the upgrade?
This is now working in QA farmer,
However issue is still persistent in QA SPMIS. @kneckinator if i understand you correctly, when updating an image of an instance, DB migration ideally automatically occurs, preserving data of the instance.
but i think thats is not whats happening currently. DB has to be reset manually by devops/devs when image is updated. maybe we can ask @emjay0921 for more information on this.
Given the above discussion, I attribute this issue to an issue with our QA deployment scripts and not with OpenSPP (the product) itself. Thus, I will close this issue without further action.