Modify test to check line.related_to instead of line.invoice

This commit is contained in:
Jared Esparza 2022-05-18 12:17:48 +02:00
parent b7908b3d53
commit f0bf49f828
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ When the statement is closed the invoices are paid and sale is done::
>>> payment_statement.reload()
>>> payment_statement.state == 'validated'
True
>>> all(l.invoice == invoice for l in payment_statement.lines)
>>> all(l.related_to == invoice for l in payment_statement.lines)
True
>>> payment_statement.balance
Decimal('22.00')