Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions account_operating_unit/tests/test_payment_operating_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_payment_from_invoice(self):
# Validate that inter OU balance move lines are created
self.assertEqual(len(payment.move_id.line_ids), 4)
self.assertAlmostEqual(payment.amount, self.invoice.amount_total)
self.assertEqual(payment.state, "paid")
self.assertIn(payment.state, ["paid", "in_process"])
self.assertEqual(self.invoice.payment_state, "paid")

def test_payment_from_two_invoices(self):
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_payment_from_two_invoices(self):
# Validate that inter OU balance move lines are created
self.assertEqual(len(payment.move_id.line_ids), 2)
self.assertEqual(payment.amount, invoices[0].amount_total)
self.assertEqual(payment.state, "paid")
self.assertIn(payment.state, ["paid", "in_process"])
for invoice in invoices:
self.assertEqual(invoice.payment_state, "paid")

Expand Down