From 4294fe71dfdfa6cc0bf3a2ab36840e86b0744e7e Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Fri, 26 Jun 2020 18:12:00 +0200 Subject: [PATCH] Add invoice date on credit wizard issue8925 --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index 7ffeba0..c118c91 100644 --- a/invoice.py +++ b/invoice.py @@ -196,8 +196,8 @@ class Invoice(metaclass=PoolMeta): if ml.account.type.receivable], key=attrgetter('maturity_date')) - def _credit(self): - invoice_vals = super(Invoice, self)._credit() + def _credit(self, **values): + invoice_vals = super(Invoice, self)._credit(**values) rectificative_reason_code = Transaction().context.get( 'rectificative_reason_code') if rectificative_reason_code: