mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] account_statement_base: Add default_statement_id to the context to create the statement lines linked to it
TT51767
This commit is contained in:
@@ -34,6 +34,7 @@ class AccountBankStatement(models.Model):
|
||||
{
|
||||
"domain": [("statement_id", "=", self.id)],
|
||||
"context": {
|
||||
"default_statement_id": self.id,
|
||||
"default_journal_id": self._context.get("active_id")
|
||||
if self._context.get("active_model") == "account.journal"
|
||||
else None,
|
||||
|
||||
Reference in New Issue
Block a user