[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:
@@ -35,7 +35,7 @@ class AccountRegisterPayments(models.TransientModel):
|
|||||||
res = super(AccountRegisterPayments, self).get_payment_vals()
|
res = super(AccountRegisterPayments, self).get_payment_vals()
|
||||||
if self.payment_method_id == self.env.ref('account_check_printing.account_payment_method_check'):
|
if self.payment_method_id == self.env.ref('account_check_printing.account_payment_method_check'):
|
||||||
res.update({
|
res.update({
|
||||||
'check_manual_sequencing': self.check_manual_sequencing,
|
'check_amount_in_words': self.check_amount_in_words,
|
||||||
})
|
})
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user