تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
2424 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

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

أفضل إجابة

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.

```

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أكتوبر 25
2570
1
سبتمبر 25
2565
3
يوليو 25
4007
1
مايو 25
2119
4
مايو 25
3456