From d77080d887aea7c10276569874e4ec93041649bc Mon Sep 17 00:00:00 2001 From: Bhavesh Odedra Date: Fri, 24 Sep 2021 13:53:38 -0700 Subject: [PATCH] [FIX] account_banking_ach_discount: Comparing apples and oranges --- account_banking_ach_discount/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_banking_ach_discount/models/account_move.py b/account_banking_ach_discount/models/account_move.py index a749d283..bdd4cecb 100644 --- a/account_banking_ach_discount/models/account_move.py +++ b/account_banking_ach_discount/models/account_move.py @@ -38,7 +38,7 @@ def _get_reconciled_info_JSON_values(self): # Discount is applied on the last payment (i.e. fully reconciled). if ( not mvl.bank_payment_line_id - and mvl.move_id == self.id + and mvl.move_id.id == self.id and item["account_payment_id"] == mvl.payment_id.id ): if mvl.full_reconcile_id and not flag: