mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
check_deposit: filter source moves on state=posted
account_check_deposit 14.0.1.1.0
This commit is contained in:
committed by
Víctor Martínez
parent
ab8426479b
commit
7c76005fe8
@@ -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",
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user