Skip to content

Commit

Permalink
[FIX]account_statement_base: bug on new bank statement line fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
clementthomas committed Sep 30, 2024
1 parent e11c081 commit 0b96202
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion account_statement_base/models/account_bank_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ def action_open_statement_lines(self):
action = self.env["ir.actions.act_window"]._for_xml_id(
"account_statement_base.account_bank_statement_line_action"
)
action.update({"domain": [("statement_id", "=", self.id)]})
action.update(

Check warning on line 14 in account_statement_base/models/account_bank_statement.py

View check run for this annotation

Codecov / codecov/patch

account_statement_base/models/account_bank_statement.py#L14

Added line #L14 was not covered by tests
{
"domain": [("statement_id", "=", self.id)],
"context": {
"default_journal_id": self._context.get("active_id")
if self._context.get("active_model") == "account.journal"
else None,
"account_bank_statement_line_main_view": True,
},
}
)

return action

def open_entries(self):
Expand Down

0 comments on commit 0b96202

Please sign in to comment.