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: