Skip to content

Commit

Permalink
Merge PR OCA#1145 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 26, 2022
2 parents e53f60a + 4401713 commit 7b43e2d
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 @@ -56,7 +56,7 @@ def _validate_expense_invoice(self, expense_lines):
if any(invoices.filtered(lambda i: i.state != 'open')):
raise UserError(_('Vendor bill state must be Open'))
expense_amount = sum(expense_lines.mapped('total_amount'))
invoice_amount = sum(invoices.mapped('residual'))
invoice_amount = sum(invoices.mapped('amount_total'))
# Expense amount must equal invoice amount
if float_compare(expense_amount, invoice_amount, precision) != 0:
raise UserError(
Expand Down

0 comments on commit 7b43e2d

Please sign in to comment.