From 4ff13cf7779ba498fa98e6356af5254d2bd4c4d4 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Fri, 7 Jun 2024 15:29:34 +0200 Subject: [PATCH] [FIX] l10n_it_withholding_tax: fix singleton error --- l10n_it_withholding_tax/models/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_it_withholding_tax/models/account.py b/l10n_it_withholding_tax/models/account.py index b09687b3a78f..129d81869107 100644 --- a/l10n_it_withholding_tax/models/account.py +++ b/l10n_it_withholding_tax/models/account.py @@ -189,7 +189,7 @@ def reconcile_exist_account_move(self, lines, rec_line_statement, amount_wt): line_to_reconcile = line break if line_to_reconcile: - if lines.move_id.move_type in ["in_refund", "out_invoice"]: + if line_to_reconcile.move_id.move_type in ["in_refund", "out_invoice"]: debit_move_id = rec_line_statement.id credit_move_id = line_to_reconcile.id else: