diff --git a/invoice.py b/invoice.py index 8acdfc7fcd..6c50c23f11 100644 --- a/invoice.py +++ b/invoice.py @@ -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: