You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to upgrade my module but I have an error, the stacktrace is:
Traceback (most recent call last):
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 698, in _tag_root
f(rec)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 599, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "C:\Program Files\Odoo 16\server\odoo\models.py", line 4374, in _load_records
data['record']._load_records_write(data['values'])
File "C:\Program Files\Odoo 16\server\odoo\models.py", line 4305, in _load_records_write
self.write(values)
File "C:\Program Files\Odoo 16\server\odoo\addons\website_slides\models\res_users.py", line 22, in write
res = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\hr\models\res_users.py", line 241, in write
result = super(User, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\gamification\models\res_users.py", line 63, in write
result = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\base_user_role_history\models\res_users.py", line 54, in write
return super().write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\mail\models\res_users.py", line 96, in write
write_res = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\resource\models\res_users.py", line 17, in write
rslt = super().write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\hide_menu_user\models\res_user.py", line 41, in write
res = super(HideMenuUser, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\base_user_role\models\user.py", line 50, in write
res = super(ResUsers, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\res_users.py", line 1607, in write
res = super(UsersView, self).write(values)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\res_users.py", line 1305, in write
res = super(UsersImplied, self).write(values)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\res_users.py", line 626, in write
internal_users.write({'groups_id': [Command.link(gid) for gid in added_groups.ids]})
File "C:\Program Files\Odoo 16\server\odoo\addons\website_slides\models\res_users.py", line 22, in write
res = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\hr\models\res_users.py", line 241, in write
result = super(User, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\gamification\models\res_users.py", line 63, in write
result = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\base_user_role_history\models\res_users.py", line 54, in write
return super().write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\mail\models\res_users.py", line 96, in write
write_res = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\resource\models\res_users.py", line 17, in write
rslt = super().write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\hide_menu_user\models\res_user.py", line 44, in write
'restrict_user_ids': [(4, self.id)]
File "C:\Program Files\Odoo 16\server\odoo\fields.py", line 5067, in get
raise ValueError("Expected singleton: %s" % record)
ValueError: Expected singleton: res.users(2, 7, 8, 6)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\Odoo 16\server\odoo\http.py", line 1584, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "C:\Program Files\Odoo 16\server\odoo\service\model.py", line 133, in retrying
result = func()
File "C:\Program Files\Odoo 16\server\odoo\http.py", line 1611, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "C:\Program Files\Odoo 16\server\odoo\http.py", line 1815, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "C:\Program Files\Odoo 16\server\odoo\addons\website\models\ir_http.py", line 237, in _dispatch
response = super()._dispatch(endpoint)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "C:\Program Files\Odoo 16\server\odoo\http.py", line 697, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "C:\Program Files\Odoo 16\server\odoo\addons\web\controllers\dataset.py", line 46, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files\Odoo 16\server\odoo\addons\web\controllers\dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files\Odoo 16\server\odoo\api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files\Odoo 16\server\odoo\api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\ir_module.py", line 468, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\ir_module.py", line 592, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "", line 2, in new
File "C:\Program Files\Odoo 16\server\odoo\tools\func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "C:\Program Files\Odoo 16\server\odoo\modules\registry.py", line 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "C:\Program Files\Odoo 16\server\odoo\modules\loading.py", line 488, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "C:\Program Files\Odoo 16\server\odoo\modules\loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "C:\Program Files\Odoo 16\server\odoo\modules\loading.py", line 231, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "C:\Program Files\Odoo 16\server\odoo\modules\loading.py", line 71, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 763, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 829, in convert_xml_import
obj.parse(doc.getroot())
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 749, in parse
self._tag_root(de)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 698, in _tag_root
f(rec)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 711, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing file:/c:/program%20files/odoo%2016/server/odoo/addons/hr_payroll_community/security/hr_payroll_security.xml:24, somewhere inside
Hi, I tried to upgrade my module but I have an error, the stacktrace is:
Traceback (most recent call last):
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 698, in _tag_root
f(rec)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 599, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "C:\Program Files\Odoo 16\server\odoo\models.py", line 4374, in _load_records
data['record']._load_records_write(data['values'])
File "C:\Program Files\Odoo 16\server\odoo\models.py", line 4305, in _load_records_write
self.write(values)
File "C:\Program Files\Odoo 16\server\odoo\addons\website_slides\models\res_users.py", line 22, in write
res = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\hr\models\res_users.py", line 241, in write
result = super(User, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\gamification\models\res_users.py", line 63, in write
result = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\base_user_role_history\models\res_users.py", line 54, in write
return super().write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\mail\models\res_users.py", line 96, in write
write_res = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\resource\models\res_users.py", line 17, in write
rslt = super().write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\hide_menu_user\models\res_user.py", line 41, in write
res = super(HideMenuUser, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\base_user_role\models\user.py", line 50, in write
res = super(ResUsers, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\res_users.py", line 1607, in write
res = super(UsersView, self).write(values)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\res_users.py", line 1305, in write
res = super(UsersImplied, self).write(values)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\res_users.py", line 626, in write
internal_users.write({'groups_id': [Command.link(gid) for gid in added_groups.ids]})
File "C:\Program Files\Odoo 16\server\odoo\addons\website_slides\models\res_users.py", line 22, in write
res = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\hr\models\res_users.py", line 241, in write
result = super(User, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\gamification\models\res_users.py", line 63, in write
result = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\base_user_role_history\models\res_users.py", line 54, in write
return super().write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\mail\models\res_users.py", line 96, in write
write_res = super(Users, self).write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\resource\models\res_users.py", line 17, in write
rslt = super().write(vals)
File "C:\Program Files\Odoo 16\server\odoo\addons\hide_menu_user\models\res_user.py", line 44, in write
'restrict_user_ids': [(4, self.id)]
File "C:\Program Files\Odoo 16\server\odoo\fields.py", line 5067, in get
raise ValueError("Expected singleton: %s" % record)
ValueError: Expected singleton: res.users(2, 7, 8, 6)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\Odoo 16\server\odoo\http.py", line 1584, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "C:\Program Files\Odoo 16\server\odoo\service\model.py", line 133, in retrying
result = func()
File "C:\Program Files\Odoo 16\server\odoo\http.py", line 1611, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "C:\Program Files\Odoo 16\server\odoo\http.py", line 1815, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "C:\Program Files\Odoo 16\server\odoo\addons\website\models\ir_http.py", line 237, in _dispatch
response = super()._dispatch(endpoint)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "C:\Program Files\Odoo 16\server\odoo\http.py", line 697, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "C:\Program Files\Odoo 16\server\odoo\addons\web\controllers\dataset.py", line 46, in call_button
action = self._call_kw(model, method, args, kwargs)
File "C:\Program Files\Odoo 16\server\odoo\addons\web\controllers\dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files\Odoo 16\server\odoo\api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "C:\Program Files\Odoo 16\server\odoo\api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\ir_module.py", line 468, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "C:\Program Files\Odoo 16\server\odoo\addons\base\models\ir_module.py", line 592, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "", line 2, in new
File "C:\Program Files\Odoo 16\server\odoo\tools\func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "C:\Program Files\Odoo 16\server\odoo\modules\registry.py", line 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "C:\Program Files\Odoo 16\server\odoo\modules\loading.py", line 488, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "C:\Program Files\Odoo 16\server\odoo\modules\loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "C:\Program Files\Odoo 16\server\odoo\modules\loading.py", line 231, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "C:\Program Files\Odoo 16\server\odoo\modules\loading.py", line 71, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 763, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 829, in convert_xml_import
obj.parse(doc.getroot())
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 749, in parse
self._tag_root(de)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 698, in _tag_root
f(rec)
File "C:\Program Files\Odoo 16\server\odoo\tools\convert.py", line 711, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing file:/c:/program%20files/odoo%2016/server/odoo/addons/hr_payroll_community/security/hr_payroll_security.xml:24, somewhere inside
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (http://odoo.local:8069/web/assets/1534-f395db4/web.assets_backend.min.js:985:163)
at XMLHttpRequest. (http://odoo.local:8069/web/assets/1534-f395db4/web.assets_backend.min.js:993:13)
Can you help me?
The text was updated successfully, but these errors were encountered: