[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:
Pedro M. Baeza
2019-08-26 16:09:19 +02:00
parent 3b81ad7b19
commit c0743257c6
4 changed files with 5 additions and 5 deletions

View File

@@ -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, "

View File

@@ -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 "

View File

@@ -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, "

View File

@@ -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))