Use current account when paying invoice
issue8540 review277631003
This commit is contained in:
+2
-1
@@ -1215,7 +1215,8 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin):
|
||||
payment_acccount = 'debit_account'
|
||||
else:
|
||||
payment_acccount = 'credit_account'
|
||||
line2.account = getattr(payment_method, payment_acccount)
|
||||
line2.account = getattr(payment_method, payment_acccount).current(
|
||||
date=date)
|
||||
|
||||
for line in lines:
|
||||
if line.account.party_required:
|
||||
|
||||
Reference in New Issue
Block a user