From 9e27a1fd4a5c3a86cb7c15dc5534ee60667f0dc3 Mon Sep 17 00:00:00 2001 From: "Nicolas (vin)" Date: Fri, 11 Feb 2022 14:42:10 +0000 Subject: [PATCH] [FIX] account_reports, l10n_it_reports: carryover fix There is an issue with the Italian carryover, line vp14b. Use case: - Month 1, have a value of 25 in this line => will trigger a carryover to line vp7 - Month 2, add more value to vp14b so that it goes above 25.82. This will set the bound as None, and thus this will not impact the carryover. This is wrong, because then the next month we will see a value of 25 in vp7 while it should be 0. closes odoo/odoo#84938 X-original-commit: ffbc7af321a36d4fd0aebb94d7a636cb1fc34b88 Related: odoo/enterprise#24555 Signed-off-by: Olivier Colson Signed-off-by: Nicolas Viseur --- addons/l10n_it/models/account_tax_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_it/models/account_tax_report.py b/addons/l10n_it/models/account_tax_report.py index b3ded4fe6ed..a6b254a36cf 100644 --- a/addons/l10n_it/models/account_tax_report.py +++ b/addons/l10n_it/models/account_tax_report.py @@ -32,7 +32,7 @@ class AccountTaxReportLine(models.AbstractModel): if amount_in_euro <= 25.82: return (None, 0) else: - return None + return (None, None) def vp14_credit_carryover_condition(self, options, line_amount, carried_over_amount): """