From b867dd6d012c5b88efb652dc93f8543faa90b26e Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Thu, 8 Feb 2024 11:27:45 +0100 Subject: [PATCH] Revert "account_usability: reset to draft the bank statement do not unreconcile" This reverts commit 85f8fe5b3011c199cc13185eefbdfd0abc0393bc. --- account_usability/models/account_bank_statement.py | 13 ------------- account_usability/views/account_bank_statement.xml | 8 -------- 2 files changed, 21 deletions(-) diff --git a/account_usability/models/account_bank_statement.py b/account_usability/models/account_bank_statement.py index 86efde8..a6eebbc 100644 --- a/account_usability/models/account_bank_statement.py +++ b/account_usability/models/account_bank_statement.py @@ -43,13 +43,6 @@ class AccountBankStatement(models.Model): res.append((statement.id, name)) return res - def button_reopen(self): - self = self.with_context(skip_undo_reconciliation=True) - return super().button_reopen() - - def button_undo_reconciliation(self): - self.line_ids.button_undo_reconciliation() - class AccountBankStatementLine(models.Model): _inherit = 'account.bank.statement.line' @@ -96,9 +89,3 @@ class AccountBankStatementLine(models.Model): 'res_id': self.move_id.id, }) return action - - def button_undo_reconciliation(self): - if self._context.get("skip_undo_reconciliation"): - return - else: - return super().button_undo_reconciliation() diff --git a/account_usability/views/account_bank_statement.xml b/account_usability/views/account_bank_statement.xml index da3dbff..aa3a655 100644 --- a/account_usability/views/account_bank_statement.xml +++ b/account_usability/views/account_bank_statement.xml @@ -16,14 +16,6 @@ -