Open TheCloneMaster opened 2 weeks ago
The error is in _do_create_moves on hr_expense_sheet.py. line 40 asks for the wrong vendor id... == self.expense_line_ids.invoice_id.partner_id
it should be == expense.invoice_id.partner_id
so that it takes the partner_id of current expense, not the one from the first expense from the report
I will upload a PR
Regards, -Mario
Module
hr_expense_invoice
Describe the bug
If an expense report includes invoices from diferent providers, when posting move the report moves to "paid" and invoices are not reconciled as paid.
To Reproduce
Affected versions: 16.0 & 17.0
Steps to reproduce the behavior:
Expected behavior The Expense report should move to "register payment", and the original invoices should appear as "paid"