check_deposit: filter source moves on state=posted

account_check_deposit 14.0.1.1.0
This commit is contained in:
Alexis de Lattre
2022-10-06 20:11:19 +02:00
committed by Víctor Martínez
parent ab8426479b
commit 7c76005fe8
3 changed files with 3 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
{
"name": "Account Check Deposit",
"version": "14.0.1.0.1",
"version": "14.0.1.1.0",
"category": "Accounting",
"license": "AGPL-3",
"summary": "Manage deposit of checks to the bank",

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}"