[FIX] account_statement_base: Add default_statement_id to the context to create the statement lines linked to it

TT51767
pull/751/head
Víctor Martínez 2024-11-19 08:42:32 +01:00
parent 11bbb81363
commit 9f0fc60fc2
1 changed files with 1 additions and 0 deletions

View File

@ -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,