OpenSPP / openspp-modules

OpenSPP Odoo modules
https://openspp.org
GNU Lesser General Public License v3.0
25 stars 10 forks source link

Error when clicking In-kind Entitlements in QA Farmer Registry #433

Open adriancris opened 3 months ago

adriancris commented 3 months ago

Description: Error when clicking in-kind entitlements in a program

Actual Behavior: Error when clicking in-kind entitlements

RPC_ERROR Odoo Server Error Traceback (most recent call last): File "/opt/odoo/odoo/http.py", line 1770, 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 1797, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/opt/odoo/odoo/http.py", line 2001, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch result = endpoint(request.params) File "/opt/odoo/odoo/http.py", line 725, in route_wrapper result = endpoint(self, *args, *params_ok) File "/opt/odoo/addons/web/controllers/dataset.py", line 24, in call_kw return 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 464, in call_kw result = _call_kw_model(method, model, args, kwargs) File "/opt/odoo/odoo/api.py", line 435, in _call_kw_model result = method(recs, args, kwargs) File "/opt/odoo/addons/web/models/models.py", line 47, in web_search_read values_records = records.web_read(specification) File "/opt/odoo/addons/web/models/models.py", line 86, in web_read values_list: List[Dict] = self.read(fields_to_read, load=None) File "/opt/odoo/odoo/models.py", line 3540, in read return self._read_format(fnames=fields, load=load) File "/opt/odoo/odoo/models.py", line 3751, in _read_format vals[name] = convert(record[name], record, use_display_name) File "/opt/odoo/odoo/fields.py", line 3110, in convert_to_read return value.id AttributeError: '_unknown' object has no attribute 'id'

The above server error caused the following client error: OwlError: An error occured in the owl lifecycle (see this Error's "cause" property) at handleError (https://qa-farmer.newlogic.net/web/assets/debug/web.assets_web.js:9163:35) at App.handleError (https://qa-farmer.newlogic.net/web/assets/debug/web.assets_web.js:13354:20) at ComponentNode.initiateRender (https://qa-farmer.newlogic.net/web/assets/debug/web.assets_web.js:9959:26)

Caused by: RPC_ERROR://qa-farmer.newlogic.net/web/assets/debug/web.assets_web.js:27839:19) at XMLHttpRequest. (https://qa-farmer.newlogic.net/web/assets/debug/web.assets_web.js:27887:27)

Expected Behavior: User should be able to click and navigate to the Entitlement table inside the program

Instance: Farmer Registry QA Instance

Screenrecording: https://github.com/OpenSPP/openspp-modules/assets/138551361/bf0b690a-95ec-438c-a746-0c3c841a44e6

reichie020212 commented 1 month ago

Upon checking, this error has been fixed by this commit https://github.com/OpenSPP/openspp-modules/commit/dedb9f3998262c66ab1dc8edc035ce1e4b6bae58

anthonymarkQA commented 1 month ago

FIndings QA Passed

Group: default elligiblity + default image

Group Manual + cash image

Individual: tag based + in kind image