Modify test to check line.related_to instead of line.invoice
This commit is contained in:
parent
b7908b3d53
commit
f0bf49f828
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue