Skip to Content
Menu
This question has been flagged

I have deleted module menus in studio which they were located on top (tool bar) of module therefore the module name disappeared from main page (module list) then try to upgrade the module to resolve the issue (so the module name listed on man page again) but when I click on module name it gives me an error of undefined and does not work!   
{I am new on Odoo}

Avatar
Discard
Author

the error test is:
Odoo Server Error

Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\api.py", line 1032, in get
value = self._data[field][record.id][key]
KeyError: <odoo.api.Environment object at 0x0A4BB4F0>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\fields.py", line 970, in _get_
value = record.env.cache.get(record, self)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\api.py", line 1034, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('ir.actions.act_window(1353,).search_view', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 653, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 695, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 938, in _call_
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\http.py", line 517, in response_wrap
response = f(*args, **kw)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\web\controllers\main.py", line 1261, in load
action = request.env[action_type].browse([action_id]).read()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_actions.py", line 210, in read
result = super(IrActionsActWindow, self).read(fields, load=load)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\models.py", line 2768, in read
values[name] = field.convert_to_read(record[name], record, use_name_get)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\models.py", line 5039, in _getitem_
return self.fields[key].get_(self, type(self))
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\fields.py", line 974, in _get_
self.determine_value(record)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\fields.py", line 1085, in determine_value
self.compute_value(recs)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\fields.py", line 1041, in compute_value
self._compute_value(records)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\fields.py", line 1032, in _compute_value
getattr(records, self.compute)()
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\addons\base\models\ir_actions.py", line 170, in _compute_search_view
fvg = self.env[act.res_model].fields_view_get(act.search_view_id.id, 'search')
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\api.py", line 820, in _getitem_
return self.registry[model_name]._browse((), self)
File "C:\Program Files (x86)\Odoo 12.0e\server\odoo\modules\registry.py", line 176, in _getitem_
return self.models[model_name]
KeyError: 'training.training'

Best Answer

Hello Ali,

Odoo studio is not deleting menu, that menu is "archive" in system. you just need to mark that menu as unarchive.

* Activate debuge or developer mode.

* Go to Technical --> User Interface-> Menu Items 

*  Search your menu

* select your menu from list view and click on Action -> Unarchive.
 

Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
    


Avatar
Discard
Author Best Answer

Thanks CandidRoot! how about the error text?

Avatar
Discard

i could not reproduce same error, but i think this error occure when you click on new menu which has been created by upgrading module.
Are you getting same error on menu which you have unarchived ?

Author

Thanks, I do unarchived but still when I click on menu the above error text stop the process!

Related Posts Replies Views Activity
0
Mar 22
541
2
Nov 19
9011
5
Aug 24
307
0
Nov 23
470
1
Mar 22
1502