diff --git a/account_payment_order_notification/__manifest__.py b/account_payment_order_notification/__manifest__.py index a51c3fcd0..6cabe6825 100644 --- a/account_payment_order_notification/__manifest__.py +++ b/account_payment_order_notification/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Account Payment Order Notification", - "version": "14.0.1.0.1", + "version": "14.0.1.2.0", "category": "Banking addons", "website": "https://github.com/OCA/bank-payment", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/account_payment_order_notification/data/mail_template_data.xml b/account_payment_order_notification/data/mail_template_data.xml index 5b127b1d1..e246b6f72 100644 --- a/account_payment_order_notification/data/mail_template_data.xml +++ b/account_payment_order_notification/data/mail_template_data.xml @@ -30,6 +30,7 @@ Amount + % for payment_line in object.payment_line_ids: ${payment_line.communication} @@ -37,6 +38,7 @@ ${format_amount(payment_line.amount_currency, payment_line.currency_id)} % endfor +

Do not hesitate to contact us if you have any questions.

diff --git a/account_payment_order_notification/i18n/account_payment_order_notification.pot b/account_payment_order_notification/i18n/account_payment_order_notification.pot index d2ae9a89c..6b0e61ef3 100644 --- a/account_payment_order_notification/i18n/account_payment_order_notification.pot +++ b/account_payment_order_notification/i18n/account_payment_order_notification.pot @@ -6,6 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-12-14 07:51+0000\n" +"PO-Revision-Date: 2022-12-14 07:51+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -33,6 +35,7 @@ msgid "" " Amount\n" " \n" " \n" +" \n" " % for payment_line in object.payment_line_ids:\n" " \n" " ${payment_line.communication}\n" @@ -40,6 +43,7 @@ msgid "" " ${format_amount(payment_line.amount_currency, payment_line.currency_id)}\n" " \n" " % endfor\n" +" \n" " \n" "

Do not hesitate to contact us if you have any questions.

\n" "\n" diff --git a/account_payment_order_notification/i18n/es.po b/account_payment_order_notification/i18n/es.po index 6fc741753..4764d1fee 100644 --- a/account_payment_order_notification/i18n/es.po +++ b/account_payment_order_notification/i18n/es.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-10-19 06:43+0000\n" -"PO-Revision-Date: 2022-10-19 08:44+0200\n" +"POT-Creation-Date: 2022-12-14 07:51+0000\n" +"PO-Revision-Date: 2022-12-14 08:54+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: es\n" @@ -41,6 +41,7 @@ msgid "" " Amount\n" " \n" " \n" +" \n" " % for payment_line in object.payment_line_ids:\n" " \n" " ${payment_line.communication}\n" @@ -49,6 +50,7 @@ msgid "" "payment_line.currency_id)}\n" " \n" " % endfor\n" +" \n" " \n" "

Do not hesitate to contact us if you have any questions.

\n" "\n" @@ -75,6 +77,7 @@ msgstr "" " Importe\n" " \n" " \n" +" \n" " % for payment_line in object.payment_line_ids:\n" " \n" " ${payment_line.communication}\n" @@ -83,6 +86,7 @@ msgstr "" "payment_line.currency_id)}\n" " \n" " % endfor\n" +" \n" " \n" "

No dude en ponerse en contacto con nosotros si tiene alguna pregunta." "

\n" diff --git a/account_payment_order_notification/migrations/14.0.1.2.0/noupdate_changes.xml b/account_payment_order_notification/migrations/14.0.1.2.0/noupdate_changes.xml new file mode 100644 index 000000000..31b2f608c --- /dev/null +++ b/account_payment_order_notification/migrations/14.0.1.2.0/noupdate_changes.xml @@ -0,0 +1,37 @@ + + + + +

Hello ${object.partner_id.name or ''},

+ % if object.order_id.payment_type == 'inbound': +

A debit order including at least one of your invoices has been processed and sent to the bank.

+ % else: +

A payment order including at least one of your invoices has been processed and sent to the bank.

+ % endif +

It includes the following transactions:

+ + + + + + + + + + % for payment_line in object.payment_line_ids: + + + + + + % endfor + +
NumberDateAmount
${payment_line.communication}${payment_line.date}${format_amount(payment_line.amount_currency, payment_line.currency_id)}
+

Do not hesitate to contact us if you have any questions.

+ + ]]>
+
+
diff --git a/account_payment_order_notification/migrations/14.0.1.2.0/post-migration.py b/account_payment_order_notification/migrations/14.0.1.2.0/post-migration.py new file mode 100644 index 000000000..140ef453b --- /dev/null +++ b/account_payment_order_notification/migrations/14.0.1.2.0/post-migration.py @@ -0,0 +1,13 @@ +# Copyright 2022 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data( + env.cr, + "account_payment_order_notification", + "migrations/14.0.1.2.0/noupdate_changes.xml", + )