From f0bf49f828bf28c5a83f36bdbc8b1f61c3013271 Mon Sep 17 00:00:00 2001 From: Jared Esparza Date: Wed, 18 May 2022 12:17:48 +0200 Subject: [PATCH] Modify test to check line.related_to instead of line.invoice --- tests/scenario_sale_payment.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scenario_sale_payment.rst b/tests/scenario_sale_payment.rst index 4ba9c64..c83600f 100644 --- a/tests/scenario_sale_payment.rst +++ b/tests/scenario_sale_payment.rst @@ -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')