Skip to Content
Menu
This question has been flagged
2 Replies
1708 Views
When I try to open Windows Action from Odoo - Settings - Technical
That happen when I change menu name of one model ( after this error I change it as it was )
then I uninstall application then Install it again , but error still

I recieviing the following error:

Traceback (most recent call last): File "D:\My System\Odoo15\odoo\odoo\addons\base\models\ir_http.py", line 237, in _dispatch result = request.dispatch() File "D:\My System\Odoo15\odoo\odoo\http.py", line 687, in dispatch result = self._call_function(**self.params) File "D:\My System\Odoo15\odoo\odoo\http.py", line 359, in _call_function return checked_call(self.db, *args, **kwargs) File "D:\My System\Odoo15\odoo\odoo\service\model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "D:\My System\Odoo15\odoo\odoo\http.py", line 348, in checked_call result = self.endpoint(*a, **kw) File "D:\My System\Odoo15\odoo\odoo\http.py", line 916, in __call__ return self.method(*args, **kw) File "D:\My System\Odoo15\odoo\odoo\http.py", line 535, in response_wrap response = f(*args, **kw) File "d:\my system\odoo15\odoo\addons\web\controllers\main.py", line 1305, in search_read return self.do_search_read(model, fields, offset, limit, domain, sort) File "d:\my system\odoo15\odoo\addons\web\controllers\main.py", line 1324, in do_search_read return Model.web_search_read(domain, fields, offset=offset, limit=limit, order=sort) File "d:\my system\odoo15\odoo\addons\web\models\models.py", line 62, in web_search_read records = self.search_read(domain, fields, offset=offset, limit=limit, order=order) File "D:\My System\Odoo15\odoo\odoo\models.py", line 5050, in search_read result = records.read(fields, **read_kwargs) File "d:\my system\odoo15\odoo\custom_addons\dynamic_odoo\models\ir_actions.py", line 40, in read self.set_virtual_data(item, self.id) File "D:\My System\Odoo15\odoo\odoo\fields.py", line 4061, in __get__ raise ValueError("Expected singleton: %s" % record) Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\My System\Odoo15\odoo\odoo\http.py", line 643, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "D:\My System\Odoo15\odoo\odoo\http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause ValueError: Expected singleton: ir.actions.act_window(24, 233, 261, 293, 5, 121, 343, 120, 306, 169, 44, 125, 133, 136, 268, 137, 269, 132, 73, 75, 46, 37, 11, 25, 146, 313, 64, 217, 240, 239, 63, 226, 131, 145, 316, 97, 99, 241, 254, 377, 74, 70, 115, 234, 246, 135, 256, 119, 238, 279, 307, 155, 94, 55, 76, 31, 104, 9, 84, 61, 57, 319, 397, 398, 327, 326, 65, 66, 208, 262, 287, 17, 225, 69, 259, 58, 59, 32, 4, 50)





Avatar
Discard
Best Answer

As per  Niyas answer,  the exception is raised from a custom module named: dynamic_odoo  , file: ir_actions.py line: 40, Method: set_virtual_data, this method retrieve multi ir.actions.act_window and method needs singleton (Only one action id) so please check the code of this custom module.

Avatar
Discard
Best Answer

Hi,

It seems the exception is raised from a custom module named: dynamic_odoo. So please cross check the written code and iterate self over the for loop in order to solve it.

Thanks & Regards

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
153
0
Nov 24
63
2
Jul 24
696
0
Apr 24
551
3
Mar 24
572