Skip to content

Commit

Permalink
[IMP] account_reconcile_oca: Open reconcile view when press the name …
Browse files Browse the repository at this point in the history
…on journal
  • Loading branch information
etobella authored and victoralmau committed Dec 17, 2024
1 parent 27174a0 commit 33493c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions account_reconcile_oca/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ def get_rainbowman_message(self):
):
return False
return _("Well done! Everything has been reconciled")

def open_action(self):
self.ensure_one()

Check warning on line 39 in account_reconcile_oca/models/account_journal.py

View check run for this annotation

Codecov / codecov/patch

account_reconcile_oca/models/account_journal.py#L39

Added line #L39 was not covered by tests
if self.type not in ["bank", "cash"]:
return super().open_action()
action = self.env["ir.actions.actions"]._for_xml_id(

Check warning on line 42 in account_reconcile_oca/models/account_journal.py

View check run for this annotation

Codecov / codecov/patch

account_reconcile_oca/models/account_journal.py#L41-L42

Added lines #L41 - L42 were not covered by tests
"account_reconcile_oca.action_bank_statement_line_reconcile_all"
)
return action

Check warning on line 45 in account_reconcile_oca/models/account_journal.py

View check run for this annotation

Codecov / codecov/patch

account_reconcile_oca/models/account_journal.py#L45

Added line #L45 was not covered by tests

0 comments on commit 33493c3

Please sign in to comment.