mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] account_reconcile_oca: Open reconcile view when press the name on journal
This commit is contained in:
committed by
Víctor Martínez
parent
27174a0b37
commit
33493c3dd3
@@ -34,3 +34,12 @@ class AccountJournal(models.Model):
|
|||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
return _("Well done! Everything has been reconciled")
|
return _("Well done! Everything has been reconciled")
|
||||||
|
|
||||||
|
def open_action(self):
|
||||||
|
self.ensure_one()
|
||||||
|
if self.type not in ["bank", "cash"]:
|
||||||
|
return super().open_action()
|
||||||
|
action = self.env["ir.actions.actions"]._for_xml_id(
|
||||||
|
"account_reconcile_oca.action_bank_statement_line_reconcile_all"
|
||||||
|
)
|
||||||
|
return action
|
||||||
|
|||||||
Reference in New Issue
Block a user