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



Traceback (most recent call last): File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/convert.py", line 537, in _tag_root f(rec) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/convert.py", line 261, in _tag_function _eval_xml(self, rec, env) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/convert.py", line 188, in _eval_xml return odoo.api.call_kw(model, method_name, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/api.py", line 517, in call_kw result = getattr(recs, name)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/addons/documents/models/documents_document.py", line 1028, in action_folder_embed_action raise UserError(_('You can not ping an action on that document.')) odoo.exceptions.UserError: You can not ping an action on that document. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/http.py", line 1957, in _transactioning return service_model.retrying(func, env=self.env) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/service/model.py", line 137, in retrying result = func() ^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/http.py", line 1924, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/http.py", line 2171, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/addons/base/models/ir_http.py", line 329, in _dispatch result = endpoint(**request.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/http.py", line 727, in route_wrapper result = endpoint(self, *args, **params_ok) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/addons/web/controllers/dataset.py", line 40, in call_button action = call_kw(request.env[model], method, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/api.py", line 517, in call_kw result = getattr(recs, name)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/venv/lib/python3.12/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/addons/base/models/ir_module.py", line 75, in check_and_log return method(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/addons/base/models/ir_module.py", line 480, in button_immediate_install return self._button_immediate_function(self.env.registry[self._name].button_install) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/addons/base/models/ir_module.py", line 604, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/venv/lib/python3.12/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/func.py", line 97, in locked return func(inst, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/modules/registry.py", line 127, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/modules/loading.py", line 480, in load_modules processed_modules += load_marked_modules(env, graph, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/modules/loading.py", line 364, in load_marked_modules loaded, processed = load_module_graph( ^^^^^^^^^^^^^^^^^^ File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/modules/loading.py", line 227, in load_module_graph load_data(env, idref, mode, kind='data', package=package) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/modules/loading.py", line 71, in load_data tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/convert.py", line 608, in convert_file convert_xml_import(env, module, fp, idref, mode, noupdate) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/convert.py", line 679, in convert_xml_import obj.parse(doc.getroot()) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/convert.py", line 594, in parse self._tag_root(de) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/convert.py", line 537, in _tag_root f(rec) File "/opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/tools/convert.py", line 550, in _tag_root raise ParseError('while parsing %s:%s, somewhere inside\n%s' % ( odoo.tools.convert.ParseError: while parsing /opt/bitnami/odoo/lib/odoo-18.0.post20241205-py3.12.egg/odoo/addons/documents_hr_expense/data/ir_actions_server_data.xml:18, somewhere inside <function model="documents.document" name="action_folder_embed_action" eval="[ ref('documents.document_internal_folder'), ref('documents_hr_expense.ir_actions_server_create_hr_expense'), ]"/> The above server error caused the following client error: RPC_ERROR: Odoo Server Error RPCError@https://censored.de/web/assets/2/e7e73b0/web.assets_web.min.js:3113:338 makeErrorFromResponse@https://censored.de/web/assets/2/e7e73b0/web.assets_web.min.js:3116:163 rpc._rpc/promise</<@https://censored.de/web/assets/2/e7e73b0/web.assets_web.min.js:3121:34


This is the error we're getting when trying to install the HR expense module. It seems to be somehow related to some documents module. Any tips how this can be fixed?

Avatar
Discard
Author

Thanks for your answer, this does not solve it unfortunately. Same error after upgrading the documents module

Author Best Answer

update: we were finally able to fix it. we manually changed in the db the object addressed for the document internal folder. This was pointing to a non existent item. Which is weird since we never did anything directly on the db itself and also did not delete essential things.



---


any other hint? Thanks for your answer, this does not solve it unfortunately. Same error after upgrading the documents module

Avatar
Discard
Author

we were finally able to fix it. we manually changed in the db the object addressed for the document internal folder. This was pointing to a non existent item. Which is weird since we never did anything directly on the db itself and also did not delete essential things.

Best Answer

Hi,
If documents app is already installed in the db, can you try upgrading the document app first and then try to install hr_expense app and see how it goes

Thanks

Avatar
Discard