Skip to content

Commit

Permalink
Merge PR #276 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 27, 2024
2 parents 56ffa60 + e7b7395 commit 0e0a057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hr_expense_invoice/models/hr_expense_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def _do_create_moves(self):
lambda x: x.display_type == "payment_term"
)
transfer_line = move.line_ids.filtered(
lambda x: x.partner_id
== self.expense_line_ids.invoice_id.partner_id
lambda x, partner=expense.invoice_id.partner_id: x.partner_id
== partner
)
(ap_lines + transfer_line).reconcile()
return res
Expand Down

0 comments on commit 0e0a057

Please sign in to comment.