[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
This commit is contained in:
Nicolas Lempereur
2018-04-27 15:11:24 +02:00
parent edc955d28d
commit 416d07f0bb
@@ -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