mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Added modification that fanzalika pointed out
This commit is contained in:
committed by
Sandy Carter
parent
3684f7198a
commit
e6914bfa9c
@@ -523,6 +523,7 @@ class bank_acc_rec_statement(orm.Model):
|
||||
('account_id', '=', obj.account_id.id),
|
||||
('move_id.state', '=', 'posted'),
|
||||
('cleared_bank_account', '=', False),
|
||||
('journal_id.type', '!=', 'situation'),
|
||||
]
|
||||
|
||||
# if not keep_previous_uncleared_entries:
|
||||
@@ -646,7 +647,8 @@ class bank_acc_rec_statement(orm.Model):
|
||||
domain = [
|
||||
('account_id', '=', account_id),
|
||||
('move_id.state', '=', 'posted'),
|
||||
('cleared_bank_account', '=', False)
|
||||
('cleared_bank_account', '=', False),
|
||||
('journal_id.type', '!=', 'situation'),
|
||||
]
|
||||
if not keep_previous_uncleared_entries:
|
||||
domain += [('draft_assigned_to_statement', '=', False)]
|
||||
|
||||
Reference in New Issue
Block a user