mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
@@ -0,0 +1 @@
|
||||
from . import models
|
||||
|
||||
1
account_statement_base/models/__init__.py
Normal file
1
account_statement_base/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import account_journal_dashboard
|
||||
16
account_statement_base/models/account_journal_dashboard.py
Normal file
16
account_statement_base/models/account_journal_dashboard.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from odoo import models
|
||||
|
||||
|
||||
class AccountJournal(models.Model):
|
||||
_inherit = "account.journal"
|
||||
|
||||
def create_cash_statement(self):
|
||||
# Totally override this action for avoiding the standard
|
||||
# message saying that you need to install the enterprise
|
||||
# module. We do the equivalent thing instead.
|
||||
self.ensure_one()
|
||||
action = self.env["ir.actions.actions"]._for_xml_id(
|
||||
"account_statement_base.account_bank_statement_line_action"
|
||||
)
|
||||
action["context"] = {"search_default_journal_id": self.id}
|
||||
return action
|
||||
Reference in New Issue
Block a user