From 6a41c6bea1cbc749a3ba459368319853d209bf22 Mon Sep 17 00:00:00 2001 From: Gabriel Cardoso de Faria Date: Thu, 15 Oct 2020 14:25:38 -0300 Subject: [PATCH] [FIX] Tests --- l10n_br_account_payment_order/demo/account_invoice.xml | 1 + l10n_br_account_payment_order/tests/test_payment_order.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/l10n_br_account_payment_order/demo/account_invoice.xml b/l10n_br_account_payment_order/demo/account_invoice.xml index 6813d8c7ec66..919aa6f987fc 100644 --- a/l10n_br_account_payment_order/demo/account_invoice.xml +++ b/l10n_br_account_payment_order/demo/account_invoice.xml @@ -11,6 +11,7 @@ out_invoice + diff --git a/l10n_br_account_payment_order/tests/test_payment_order.py b/l10n_br_account_payment_order/tests/test_payment_order.py index 1f83293de25a..4acbaa2d25b7 100644 --- a/l10n_br_account_payment_order/tests/test_payment_order.py +++ b/l10n_br_account_payment_order/tests/test_payment_order.py @@ -104,9 +104,10 @@ def test_cancel_payment_order(self): for line in payment_order.payment_line_ids: line.percent_interest = 1.5 test_amount_interest = line.amount_interest - self.assertEquals( - test_amount_interest, 10.5, - "Error with compute field amount_interest.") + if line.amount_currency == 700.0: + self.assertEquals( + test_amount_interest, 10.5, + "Error with compute field amount_interest.") # Open payment order payment_order.draft2open()