From 416d07f0bb05ecae63edeea99a606e03f8699016 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 27 Apr 2018 14:47:22 +0200 Subject: [PATCH] [FIX] account_check_printing: multi payment has amount in words In the wizard for payment several invoices with one payment, there was a error when making the previous fix: 29c6c06de7. The patch still worked because of a particularity of readonly and related on account.payment but the check_amount_in_words would possibly not be set when it should have. opw-1839720 closes #24476 --- addons/account_check_printing/models/account_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_check_printing/models/account_payment.py b/addons/account_check_printing/models/account_payment.py index 42515a8e20b..52e8a8bd790 100644 --- a/addons/account_check_printing/models/account_payment.py +++ b/addons/account_check_printing/models/account_payment.py @@ -35,7 +35,7 @@ class AccountRegisterPayments(models.TransientModel): res = super(AccountRegisterPayments, self).get_payment_vals() if self.payment_method_id == self.env.ref('account_check_printing.account_payment_method_check'): res.update({ - 'check_manual_sequencing': self.check_manual_sequencing, + 'check_amount_in_words': self.check_amount_in_words, }) return res