We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 774ff14 commit c01bab6Copy full SHA for c01bab6
account_reconcile_oca/models/account_bank_statement.py
@@ -0,0 +1,15 @@
1
+# Copyright 2024 Dixmit
2
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
+from odoo import models
4
+
5
6
+class AccountBankStatement(models.Model):
7
+ _inherit = "account.bank.statement"
8
9
+ def action_open_statement(self):
10
+ self.ensure_one()
11
+ action = self.env["ir.actions.act_window"]._for_xml_id(
12
+ "account_reconcile_oca.account_bank_statement_action_edit"
13
+ )
14
+ action["res_id"] = self.id
15
+ return action
0 commit comments