File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
account_operating_unit/tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def test_payment_from_invoice(self):
3838 # Validate that inter OU balance move lines are created
3939 self .assertEqual (len (payment .move_id .line_ids ), 4 )
4040 self .assertAlmostEqual (payment .amount , self .invoice .amount_total )
41- self .assertEqual (payment .state , "paid" )
41+ self .assertIn (payment .state , [ "paid" , "in_process" ] )
4242 self .assertEqual (self .invoice .payment_state , "paid" )
4343
4444 def test_payment_from_two_invoices (self ):
@@ -77,7 +77,7 @@ def test_payment_from_two_invoices(self):
7777 # Validate that inter OU balance move lines are created
7878 self .assertEqual (len (payment .move_id .line_ids ), 2 )
7979 self .assertEqual (payment .amount , invoices [0 ].amount_total )
80- self .assertEqual (payment .state , "paid" )
80+ self .assertIn (payment .state , [ "paid" , "in_process" ] )
8181 for invoice in invoices :
8282 self .assertEqual (invoice .payment_state , "paid" )
8383
You can’t perform that action at this time.
0 commit comments