mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_order/account_banking_sepa_direct_debit: Call message_post with kwargs
If not, several overrides of the method with the signature (self, **kwargs) will fail.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{
|
||||
'name': 'Account Banking SEPA Direct Debit',
|
||||
'summary': 'Create SEPA files for Direct Debit',
|
||||
'version': '11.0.1.0.2',
|
||||
'version': '11.0.1.0.3',
|
||||
'license': 'AGPL-3',
|
||||
'author': "Akretion, "
|
||||
"Tecnativa, "
|
||||
|
||||
@@ -265,7 +265,7 @@ class AccountPaymentOrder(models.Model):
|
||||
'recurrent_sequence_type': 'recurring',
|
||||
})
|
||||
for first_mandate in first_mandates:
|
||||
first_mandate.message_post(_(
|
||||
first_mandate.message_post(body=_(
|
||||
"Automatically switched from <b>First</b> to "
|
||||
"<b>Recurring</b> when the debit order "
|
||||
"<a href=# data-oe-model=account.payment.order "
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
{
|
||||
'name': 'Account Payment Order',
|
||||
'version': '11.0.1.3.1',
|
||||
'version': '11.0.1.3.2',
|
||||
'license': 'AGPL-3',
|
||||
'author': "ACSONE SA/NV, "
|
||||
"Therp BV, "
|
||||
|
||||
@@ -104,12 +104,12 @@ class AccountInvoice(models.Model):
|
||||
line.create_payment_line_from_move_line(payorder)
|
||||
count += 1
|
||||
if new_payorder:
|
||||
inv.message_post(_(
|
||||
inv.message_post(body=_(
|
||||
'%d payment lines added to the new draft payment '
|
||||
'order %s which has been automatically created.')
|
||||
% (count, payorder.name))
|
||||
else:
|
||||
inv.message_post(_(
|
||||
inv.message_post(body=_(
|
||||
'%d payment lines added to the existing draft '
|
||||
'payment order %s.')
|
||||
% (count, payorder.name))
|
||||
|
||||
Reference in New Issue
Block a user