Skip to content

Commit

Permalink
Update hr_expense_sheet.py
Browse files Browse the repository at this point in the history
Use the correct partner, from current expense line from the report, not always the same partner from first expense line
  • Loading branch information
TheCloneMaster authored Oct 21, 2024
1 parent 598eb41 commit d6106d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hr_expense_invoice/models/hr_expense_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _do_create_moves(self):
)
transfer_line = move.line_ids.filtered(
lambda x: x.partner_id
== self.expense_line_ids.invoice_id.partner_id
== expense.invoice_id.partner_id
)
(ap_lines + transfer_line).reconcile()
return res
Expand Down

0 comments on commit d6106d0

Please sign in to comment.