Merge PR #1475 into 14.0

Signed-off-by rafaelbn
This commit is contained in:
OCA-git-bot
2022-10-08 08:21:00 +00:00
2 changed files with 2 additions and 0 deletions

View File

@@ -335,6 +335,7 @@ class AccountCheckDeposit(models.Model):
("debit", ">", 0),
("check_deposit_id", "=", False),
("currency_id", "=", self.currency_id.id),
("parent_state", "=", "posted"),
]
)
if all_pending_checks:

View File

@@ -81,6 +81,7 @@
('currency_id', '=', currency_id),
('account_id', '=', journal_default_account_id),
('company_id', '=', company_id),
('parent_state', '=', 'posted'),
]"
context="{'currency': currency_id,
'journal_id': journal_id}"