Skip to Content
Menu
This question has been flagged
2 Replies
1769 Views

Hello Everyone,

I am new to odoo and currently facing an error, when I open odoo>go to settings> select manage users in users section>select admin user>click authentication at top right corner, it shows:

An error occurred
Please use the copy button to report the error to your support service.

RPC_ERROR
Odoo Server Error:


Traceback (most recent call last): File "/opt/odoo16/odoo16/odoo/tools/safe_eval.py", line 362, in safe_eval return unsafe_eval(c, globals_dict, locals_dict) File "", line 1, in NameError: name 'active' is not defined During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo16/odoo16/odoo/http.py", line 1633, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/opt/odoo16/odoo16/odoo/service/model.py", line 133, in retrying result = func() File "/opt/odoo16/odoo16/odoo/http.py", line 1660, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/opt/odoo16/odoo16/odoo/http.py", line 1864, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/opt/odoo16/odoo16/odoo/addons/base/models/ir_http.py", line 154, in _dispatch result = endpoint(**request.params) File "/opt/odoo16/odoo16/odoo/http.py", line 697, in route_wrapper result = endpoint(self, *args, **params_ok) File "/opt/odoo16/odoo16/addons/web/controllers/dataset.py", line 42, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/odoo16/odoo16/addons/web/controllers/dataset.py", line 33, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo16/odoo16/odoo/api.py", line 464, in call_kw result = _call_kw_model(method, model, args, kwargs) File "/opt/odoo16/odoo16/odoo/api.py", line 435, in _call_kw_model result = method(recs, *args, **kwargs) File "/opt/odoo16/odoo16/odoo/addons/base/models/ir_ui_view.py", line 2510, in get_views result['views'] = { File "/opt/odoo16/odoo16/odoo/addons/base/models/ir_ui_view.py", line 2511, in v_type: self.get_view( File "/opt/odoo16/odoo16/odoo/addons/base/models/ir_ui_view.py", line 2699, in get_view node = self.env['ir.ui.view']._postprocess_context_dependent(node) File "/opt/odoo16/odoo16/odoo/addons/base/models/ir_ui_view.py", line 1128, in _postprocess_context_dependent value = bool(safe_eval.safe_eval(value, {'context': self._context})) File "/opt/odoo16/odoo16/odoo/tools/safe_eval.py", line 376, in safe_eval raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)) ValueError: : "name 'active' is not defined" while evaluating 'active == True' The above server error caused the following client error: RPC_ERROR: Odoo Server Error RPCError@http://localhost:8069/web/assets/208-146ff03/web.assets_backend.min.js:988:274 makeErrorFromResponse@http://localhost:8069/web/assets/208-146ff03/web.assets_backend.min.js:992:163 jsonrpc/promise

Can anyone please tell me how to fix this?

(I have also installed external rest API module in my odoo instance )

Avatar
Discard
Author Best Answer

Hello Manish

I have cloned my Odoo code from https://github .com/odoo/odoo/tree/16.0, and I have no idea about its internal workings. I will be using Odoo as the backend to fetch data into my Android app. In order to achieve that, I need my Odoo instance to run without errors. Can you tell me where I need to make changes and how to make those changes?

Avatar
Discard

Can you share more information about which module you're creating external API?

Best Answer

Hello Shourya, 


I think the active field missing in the module. 


Please review your field information.

Avatar
Discard
Related Posts Replies Views Activity
1
May 25
1802
1
Apr 25
2874
1
Apr 25
3628
1
Apr 25
1231
4
Mar 25
6084