Do not try to reconcile posted lines without debit/credit but with second currency amount
Closes #13293
This commit is contained in:
@@ -491,7 +491,10 @@ class Move(DescriptionOriginMixin, ModelSQL, ModelView):
|
||||
line.id,
|
||||
where=reduce_ids(line.move, sub_moves_ids)
|
||||
& (line.debit == Decimal(0))
|
||||
& (line.credit == Decimal(0))))
|
||||
& (line.credit == Decimal(0))
|
||||
& ((line.amount_second_currency == Null)
|
||||
| (line.amount_second_currency == Decimal(0)))
|
||||
))
|
||||
to_reconcile.extend(l for l, in cursor)
|
||||
|
||||
for move in moves:
|
||||
|
||||
Reference in New Issue
Block a user