Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2418 Lượt xem

hi, i working in odoo15, i try to install hr_expense module but i have the next error


Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 644, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 302, in _handle_exception
    raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /usr/lib/python3/dist-packages/odoo/addons/hr_expense/data/hr_expense_data.xml:4, somewhere inside

            Expenses
            0.0
            1.0
            service
            
            
        



at the moment, is the unic module when i have that error

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,
it seems to be related to your db, you may not get same error in a fresh db i believe. You can just confirm that and in order to fix the existing db, just try upgrading the base_module and then try installing the hr_expense module.

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks, thats works, i update base module and i can install hr_expense without problem

Câu trả lời hay nhất

The same error happens with the latest odoo v18 enterprise +e.20241214 . Seems like this module is broken in the delivered package itself.


```

odoo/addons/documents/models/documents_document.py", line 1028, in action_folder_embed_action 2024-12-27T17:16:18.433839444Z raise UserError(_('You can not ping an action on that document.')) 2024-12-27T17:16:18.433844734Z odoo.exceptions.UserError: You can not ping an action on that document.

```

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

ParseError, which usually indicates an issue with the XML content in the module's data file. In this case, it seems to be related to the hr_expense_data.xml file of the hr_expense module.
open your XML file and check the below details:
Make sure it follows the correct XML structure and syntax.

Double-check the values being defined for the "Expenses" section. Ensure that they are correctly formatted and match the expected data types.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 25
2566
1
thg 9 25
2556
3
thg 7 25
4005
1
thg 5 25
2116
4
thg 5 25
3451