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.reload()
|
||||||
>>> payment_statement.state == 'validated'
|
>>> payment_statement.state == 'validated'
|
||||||
True
|
True
|
||||||
>>> all(l.invoice == invoice for l in payment_statement.lines)
|
>>> all(l.related_to == invoice for l in payment_statement.lines)
|
||||||
True
|
True
|
||||||
>>> payment_statement.balance
|
>>> payment_statement.balance
|
||||||
Decimal('22.00')
|
Decimal('22.00')
|
||||||
|
Loading…
Reference in New Issue
Block a user