From a7d6b4e3a74a804d8e6ecc0b132411e58d7f8d73 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 24 Nov 2016 16:42:48 +0100 Subject: [PATCH] Set date on PayInvoice.ask transition Otherwise when using a different currency it raises an error because an exchange rate can not be found for an empty date. issue6053 review32821002 --- invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invoice.py b/invoice.py index 3a14a598ca..7a616a0f2a 100644 --- a/invoice.py +++ b/invoice.py @@ -2546,6 +2546,7 @@ class PayInvoice(Wizard): if not x.reconciliation] default['amount'] = self.start.amount + default['date'] = self.start.date default['currency'] = self.start.currency.id default['currency_digits'] = self.start.currency_digits default['company'] = invoice.company.id