Check account objects instead of id, so if account is None it does not crash. #047955
This commit is contained in:
parent
99838f1ad0
commit
efaff83579
2
sale.py
2
sale.py
@ -320,7 +320,7 @@ class WizardSaleReconcile(Wizard):
|
|||||||
continue
|
continue
|
||||||
for line in payment.move.lines:
|
for line in payment.move.lines:
|
||||||
if (not line.reconciliation and
|
if (not line.reconciliation and
|
||||||
line.account.id == account.id):
|
line.account == account):
|
||||||
lines.append(line)
|
lines.append(line)
|
||||||
amount += line.debit - line.credit
|
amount += line.debit - line.credit
|
||||||
if lines and amount == Decimal('0.0'):
|
if lines and amount == Decimal('0.0'):
|
||||||
|
Loading…
Reference in New Issue
Block a user