diff --git a/account_banking_ach_discount/models/bank_payment_line.py b/account_banking_ach_discount/models/bank_payment_line.py index d2e8f2ce..d1f4a1da 100644 --- a/account_banking_ach_discount/models/bank_payment_line.py +++ b/account_banking_ach_discount/models/bank_payment_line.py @@ -25,14 +25,14 @@ def _compute_discount_amount(self): discount_amount = sum(bline.mapped("payment_line_ids.discount_amount")) bline.discount_amount = discount_amount - def reconcile(self): - self.ensure_one() - amlo = self.env["account.move.line"] - transit_mlines = amlo.search([("bank_payment_line_id", "=", self.id)]) - for line in transit_mlines: - ap_mlines = line.move_id.line_ids.filtered( - lambda x: x.account_id == line.account_id - ) - lines_to_rec = line - lines_to_rec += ap_mlines - lines_to_rec.reconcile() + # def reconcile(self): + # self.ensure_one() + # amlo = self.env["account.move.line"] + # transit_mlines = amlo.search([("bank_payment_line_id", "=", self.id)]) + # for line in transit_mlines: + # ap_mlines = line.move_id.line_ids.filtered( + # lambda x: x.account_id == line.account_id + # ) + # lines_to_rec = line + # lines_to_rec += ap_mlines + # lines_to_rec.reconcile()