This question has been flagged
1 Reply
2275 Views

Dear all,


I am using Expense module in Odoo 8.

Then, I am able to 'submit to Manager'

Then, I am trying to 'Generate Accounting Entries' for an Expense.

Finally, After pressing the button, I got this error message :


Cannot reconcile supplier invoice payable with generated line. Please check amounts and see if the invoice is already added or paid. Invoice: False


If anybody has an idea how to fix that it will be great.


Best Regards,

Youssef

Avatar
Discard
Best Answer

This exception is generated in custom module hr_expense_invoice (from OCA - see: https://github.com/OCA/hr/blob/8.0/hr_expense_invoice/models/hr_expense_expense.py, line 49). This module is not in the standard version odoo 8.


Uninstall it or update. It is possible that the code in this module is old or has been installed incorrectly, or the field invoice (added by module in expense line) is incorrectly set with user default value - where invoice.name = False.

Avatar
Discard
Author

Thanks you.

Could you help me for updating the module

Best regards

You get code from: https://www.odoo.com/apps/modules/8.0/hr_expense_invoice/

upload to the server, restart server, and upgrade module (menu Settings/Installed modules)