From ea915152a7fd22b9f6638fbc6a4bbe5404abd6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 1 Sep 2023 18:15:05 +0200 Subject: [PATCH] Test deferred balance against a range of possible values Depending of the day of the year, the amount deferred may vary of 2 days. Closes #12545 --- .../tests/scenario_account_invoice_defer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_invoice_defer/tests/scenario_account_invoice_defer.rst b/modules/account_invoice_defer/tests/scenario_account_invoice_defer.rst index 806647cf93..ddfce279e1 100644 --- a/modules/account_invoice_defer/tests/scenario_account_invoice_defer.rst +++ b/modules/account_invoice_defer/tests/scenario_account_invoice_defer.rst @@ -108,7 +108,7 @@ Check moves on invoice deferred:: >>> len(deferral.moves) 13 >>> accounts['deferred_expense'].reload() - >>> accounts['deferred_expense'].balance in {Decimal('270'), Decimal('271')} + >>> Decimal('268') <= accounts['deferred_expense'].balance <= Decimal('271') True Define next fiscal year::