[FIX] payment_buckaroo: stop crashing on invalid translatable string

closes odoo/odoo#82939

X-original-commit: 1d2fef3ae247f18ccf5c046bf02d35f66f0a0443
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv)
2022-01-18 11:02:14 +00:00
parent 04997a86b9
commit e0601745d8
2 changed files with 4 additions and 4 deletions
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-16 13:18+0000\n"
"PO-Revision-Date: 2021-11-16 13:18+0000\n"
"POT-Creation-Date: 2022-01-17 16:38+0000\n"
"PO-Revision-Date: 2022-01-17 16:38+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -69,7 +69,7 @@ msgstr ""
#. module: payment_buckaroo
#: code:addons/payment_buckaroo/models/payment_transaction.py:0
#, python-format
msgid "Received data with missing reference (%(ref)s) or shasign (%(sign))"
msgid "Received data with missing reference (%(ref)s) or shasign (%(sign)s)"
msgstr ""
#. module: payment_buckaroo
@@ -84,7 +84,7 @@ class PaymentTransaction(models.Model):
if not reference or not shasign:
raise ValidationError(
"Buckaroo: " + _(
"Received data with missing reference (%(ref)s) or shasign (%(sign))",
"Received data with missing reference (%(ref)s) or shasign (%(sign)s)",
ref=reference, sign=shasign
)
)