Do not fail in party_required test if account is None in _get_writeoff_move
issue7842 review47731002
This commit is contained in:
1 parent
b15762fb70
commit
2fae2d7d1b
1 file changed
+2
-1
@@ -1246,7 +1246,8 @@ class Line(ModelSQL, ModelView):
|
||||
line = cls()
|
||||
lines.append(line)
|
||||
line.account = account
|
||||
line.party = reconcile_party if account.party_required else None
|
||||
line.party = (
|
||||
reconcile_party if account and account.party_required else None)
|
||||
line.debit = amount if amount > 0 else 0
|
||||
line.credit = -amount if amount < 0 else 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user