mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Singular of criteria: criterion
This commit is contained in:
@@ -49,13 +49,13 @@ class account_bank_statement_line(orm.Model):
|
|||||||
domain = _get_domain(cr, uid, st_line, excluded_ids=excluded_ids,
|
domain = _get_domain(cr, uid, st_line, excluded_ids=excluded_ids,
|
||||||
context=context)
|
context=context)
|
||||||
new_domain = []
|
new_domain = []
|
||||||
for criterium in domain:
|
for criterion in domain:
|
||||||
if len(criterium) == 3:
|
if len(criterion) == 3:
|
||||||
field, op, value = criterium
|
field, op, value = criterion
|
||||||
if (field, op) == ('ref', '='):
|
if (field, op) == ('ref', '='):
|
||||||
new_domain += [
|
new_domain += [
|
||||||
'|',
|
'|',
|
||||||
('transaction_ref', '=', value),
|
('transaction_ref', '=', value),
|
||||||
]
|
]
|
||||||
new_domain.append(criterium)
|
new_domain.append(criterion)
|
||||||
return new_domain
|
return new_domain
|
||||||
|
|||||||
Reference in New Issue
Block a user