Tried to installpayroll
andexpenses
module, but got the below error.
`Traceback (most recent call last): File "/opt/odoo16/odoo/odoo/http.py", line 1584, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/opt/odoo16/odoo/odoo/service/model.py", line 133, in retrying result = func() File "/opt/odoo16/odoo/odoo/http.py", line 1611, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/opt/odoo16/odoo/odoo/http.py", line 1815, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/opt/odoo16/odoo/addons/website/models/ir_http.py", line 235, in _dispatch response = super()._dispatch(endpoint) File "/opt/odoo16/odoo/odoo/addons/base/models/ir_http.py", line 154, in _dispatch result = endpoint(**request.params) File "/opt/odoo16/odoo/odoo/http.py", line 697, in route_wrapper result = endpoint(self, *args, **params_ok) File "/opt/odoo16/odoo/addons/web/controllers/dataset.py", line 46, in call_button action = self._call_kw(model, method, args, kwargs) File "/opt/odoo16/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo16/odoo/odoo/api.py", line 461, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/opt/odoo16/odoo/odoo/api.py", line 448, in _call_kw_multi result = method(recs, *args, **kwargs) File "", line 2, in button_immediate_install File "/opt/odoo16/odoo/odoo/addons/base/models/ir_module.py", line 76, in check_and_log return method(self, *args, **kwargs) File "/opt/odoo16/odoo/odoo/addons/base/models/ir_module.py", line 491, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/opt/odoo16/odoo/odoo/addons/base/models/ir_module.py", line 615, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "", line 2, in new File "/opt/odoo16/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/opt/odoo16/odoo/odoo/modules/registry.py", line 90, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/opt/odoo16/odoo/odoo/modules/loading.py", line 488, in load_modules processed_modules += load_marked_modules(cr, graph, File "/opt/odoo16/odoo/odoo/modules/loading.py", line 372, in load_marked_modules loaded, processed = load_module_graph( File "/opt/odoo16/odoo/odoo/modules/loading.py", line 231, in load_module_graph load_data(cr, idref, mode, kind='data', package=package) File "/opt/odoo16/odoo/odoo/modules/loading.py", line 71, in load_data tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind) File "/opt/odoo16/odoo/odoo/tools/convert.py", line 763, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate) File "/opt/odoo16/odoo/odoo/tools/convert.py", line 829, in convert_xml_import obj.parse(doc.getroot()) File "/opt/odoo16/odoo/odoo/tools/convert.py", line 749, in parse self._tag_root(de) File "/opt/odoo16/odoo/odoo/tools/convert.py", line 709, in _tag_root raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback odoo.tools.convert.ParseError: while parsing /opt/odoo16/odoo/addons/hr_expense/security/hr_expense_security.xml:20 The user cannot have more than one user types. View error context: '-no context-' The above server error caused the following client error: RPC_ERROR: Odoo Server Error RPCError@https://erp.barcode.com.np/web/assets/25670-6d3f25d/web.assets_backend.min.js:988:274 makeErrorFromResponse@https://erp.barcode.com.np/web/assets/25670-6d3f25d/web.assets_backend.min.js:992:163 jsonrpc/promise
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
Hi,
A user can be of 3 types: Internal User, Portal or Public. When a user is tried to add in multiple groups in these 3, the above warning is raised, not sure how you reached this scenario, i believe this something db specific in this case. Can you debug more with a help of technical person in you team and see how it happens.
If you believe this a bug in standard odoo, see if you can reproduce the same in odoo runbot.
Thanks
Line 20 creates the group "Expenses / Administrator" and tries to add two Users to it "OdooBot" and "Administrator" so my guess is that one of these Users (probably OdooBot) had the User Type changed so that it could not be added to Internal Groups?
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
5月 25
|
4014 | ||
|
0
10月 23
|
1227 | ||
|
1
7月 23
|
2922 | ||
|
1
5月 25
|
1265 | ||
|
1
8月 24
|
1642 |