Skip to content

Commit

Permalink
[FIX] account_reconcile_oca: Use edit reconcile method in case it is …
Browse files Browse the repository at this point in the history
…not defined
  • Loading branch information
etobella committed Feb 7, 2024
1 parent e4a7897 commit 2f44827
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions account_reconcile_oca/models/account_bank_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,9 @@ def _reconcile_bank_line_keep(self, data):

def unreconcile_bank_line(self):
self.ensure_one()
return getattr(self, "_unreconcile_bank_line_%s" % self.reconcile_mode)(
self.reconcile_data_info["data"]
)
return getattr(
self, "_unreconcile_bank_line_%s" % (self.reconcile_mode or "edit")
)(self.reconcile_data_info["data"])

def _unreconcile_bank_line_edit(self, data):
self.action_undo_reconciliation()
Expand Down

0 comments on commit 2f44827

Please sign in to comment.