-
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] make the statements views editable=top by default
And add an icon to allow users to navigate to the statement lines. Currently it's not possible to open the statement form view. When editing the view an error occurs, related with the recomputation of running balances.
- Loading branch information
1 parent
94b4cda
commit 7014329
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from . import account_journal_dashboard | ||
from . import account_bank_statement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from odoo import models | ||
|
||
|
||
class AccountBankStatement(models.Model): | ||
_inherit = "account.bank.statement" | ||
|
||
def action_open_statement_lines(self): | ||
self.ensure_one() | ||
if not self: | ||
return {} | ||
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)]}) | ||
return action | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters