[IMP] account_banking_pain_base: Provide a more detailed message when _prepare_field fails

This commit is contained in:
SimoRubi
2019-08-05 11:51:49 +02:00
committed by Pedro M. Baeza
parent c0472aef10
commit e85e08ffbe
12 changed files with 571 additions and 147 deletions

View File

@@ -6,7 +6,7 @@
{
'name': 'Account Banking PAIN Base Module',
'summary': 'Base module for PAIN file generation',
'version': '12.0.1.0.1',
'version': '12.0.1.0.2',
'license': 'AGPL-3',
'author': "Akretion, "
"Noviat, "

View File

@@ -109,15 +109,9 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr ""
#. module: account_banking_pain_base
@@ -232,6 +226,20 @@ msgstr ""
msgid "Credit Card Payment "
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, python-format
msgid "Creditor name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid "Data for evaluation:\n"
" context: {eval_ctx}\n"
" field path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
msgid "Debit Card Payment"
@@ -242,6 +250,12 @@ msgstr ""
msgid "Debit Card Payment"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -523,7 +537,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid "Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for the company '%s'. Both fields must have a value."
msgstr ""
@@ -594,6 +608,24 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, python-format
msgid "Payment Line has reference '%s'."
msgstr ""
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -768,7 +800,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr ""
@@ -783,13 +815,13 @@ msgid "The following Bank Identifier Codes (BIC) do not respect the SEPA pattern
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid "The generated XML file is not valid against the official XML Schema Definition. The generated XML file and the full error have been written in the server logs. Here is the error, which may give you an idea on the cause of the problem : %s"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr ""

View File

@@ -120,16 +120,10 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr ""
"Das '%s' der Zahlungszeile kann nicht mit der Referenz '%s'berechnet werden."
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, fuzzy, python-format
#| msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr "Das Feld '%s' kann nicht berechnet werden."
#. module: account_banking_pain_base
@@ -248,6 +242,22 @@ msgstr "Kreditkarten Zahlung"
msgid "Credit Card Payment "
msgstr "Kreditkarten Zahlung"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, fuzzy, python-format
#| msgid "Credit Card Payment"
msgid "Creditor name"
msgstr "Kreditkarten Zahlung"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
#, fuzzy
@@ -259,6 +269,12 @@ msgstr "Debitkartenzahlung"
msgid "Debit Card Payment"
msgstr "Debitkartenzahlung"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -579,7 +595,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -655,6 +671,26 @@ msgstr ""
msgid "PAIN Version"
msgstr "PAIN Verzion"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, fuzzy, python-format
#| msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgid "Payment Line has reference '%s'."
msgstr ""
"Das '%s' der Zahlungszeile kann nicht mit der Referenz '%s'berechnet werden."
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -834,7 +870,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr "Das '%s' ist leer oder 0. Es sollte einen Nicht-Null-Wert haben."
@@ -850,7 +886,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -864,7 +900,7 @@ msgstr ""
"eine Idee über die Ursache des Problems geben kann: %s"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr ""
@@ -1063,3 +1099,11 @@ msgstr ""
#: selection:account.payment.method,pain_version:0
msgid "pain.008.003.02 (direct debit in Germany)"
msgstr ""
#~ msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
#~ msgstr ""
#~ "Das '%s' der Zahlungszeile kann nicht mit der Referenz '%s'berechnet "
#~ "werden."
#~ msgid "Cannot compute the '%s'."
#~ msgstr "Das Feld '%s' kann nicht berechnet werden."

View File

@@ -119,16 +119,10 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr ""
"No se puede procesar el campo '%s' de la línea de pago con referencia '%s'."
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, fuzzy, python-format
#| msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr "No se puede procesar el campo '%s'."
#. module: account_banking_pain_base
@@ -243,6 +237,21 @@ msgstr ""
msgid "Credit Card Payment "
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, python-format
msgid "Creditor name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
msgid "Debit Card Payment"
@@ -253,6 +262,12 @@ msgstr ""
msgid "Debit Card Payment"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -567,7 +582,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -642,6 +657,26 @@ msgstr ""
msgid "PAIN Version"
msgstr "Versión PAIN"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, fuzzy, python-format
#| msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgid "Payment Line has reference '%s'."
msgstr ""
"No se puede procesar el campo '%s' de la línea de pago con referencia '%s'."
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -818,7 +853,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr "'%s' está vacío o es 0. Debería tener un valor no nulo."
@@ -834,7 +869,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -848,7 +883,7 @@ msgstr ""
"causa del problema : %s"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr "El tipo del campo '%s' es %s. Debería ser una cadena o unicode."
@@ -1044,3 +1079,11 @@ msgstr ""
#: selection:account.payment.method,pain_version:0
msgid "pain.008.003.02 (direct debit in Germany)"
msgstr ""
#~ msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
#~ msgstr ""
#~ "No se puede procesar el campo '%s' de la línea de pago con referencia "
#~ "'%s'."
#~ msgid "Cannot compute the '%s'."
#~ msgstr "No se puede procesar el campo '%s'."

View File

@@ -119,17 +119,10 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr ""
"Impossible de calculer le '%s' de la ligne de paiement ayant la référence "
"'%s'."
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, fuzzy, python-format
#| msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr "Impossible de calculer le '%s'."
#. module: account_banking_pain_base
@@ -245,6 +238,21 @@ msgstr ""
msgid "Credit Card Payment "
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, python-format
msgid "Creditor name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
msgid "Debit Card Payment"
@@ -255,6 +263,12 @@ msgstr ""
msgid "Debit Card Payment"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -554,7 +568,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -627,6 +641,27 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, fuzzy, python-format
#| msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgid "Payment Line has reference '%s'."
msgstr ""
"Impossible de calculer le '%s' de la ligne de paiement ayant la référence "
"'%s'."
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -802,7 +837,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr "Le '%s' est vide ou égal à 0. Il devrait avoir une valeur non-nulle."
@@ -818,7 +853,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -832,7 +867,7 @@ msgstr ""
"une idée sur la cause du problème : %s"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr ""
@@ -1006,3 +1041,11 @@ msgstr ""
#: selection:account.payment.method,pain_version:0
msgid "pain.008.003.02 (direct debit in Germany)"
msgstr ""
#~ msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
#~ msgstr ""
#~ "Impossible de calculer le '%s' de la ligne de paiement ayant la référence "
#~ "'%s'."
#~ msgid "Cannot compute the '%s'."
#~ msgstr "Impossible de calculer le '%s'."

View File

@@ -120,15 +120,9 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr ""
#. module: account_banking_pain_base
@@ -246,6 +240,21 @@ msgstr ""
msgid "Credit Card Payment "
msgstr "Ostala plaćanja"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, fuzzy, python-format
msgid "Creditor name"
msgstr "Ostala plaćanja"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
#, fuzzy
@@ -257,6 +266,12 @@ msgstr "Ostala plaćanja"
msgid "Debit Card Payment"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -557,7 +572,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -630,6 +645,24 @@ msgstr ""
msgid "PAIN Version"
msgstr "PAIN verzija"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, python-format
msgid "Payment Line has reference '%s'."
msgstr ""
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -807,7 +840,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr ""
@@ -823,7 +856,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -833,7 +866,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr ""

View File

@@ -124,16 +124,10 @@ msgid "Cancellation Fee"
msgstr "Spese di cancellazione"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr ""
"Non è possibile calcolare '%s' della linea di pagamento con riferimento '%s'."
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, fuzzy, python-format
#| msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr "Non è possibile calcolare '%s'."
#. module: account_banking_pain_base
@@ -258,6 +252,22 @@ msgstr "Pagamento con Carta di Credito"
msgid "Credit Card Payment "
msgstr "Pagamento con Carta di Credito "
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, fuzzy, python-format
#| msgid "Credit Card Payment"
msgid "Creditor name"
msgstr "Pagamento con Carta di Credito"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
msgid "Debit Card Payment"
@@ -268,6 +278,12 @@ msgstr "Pagamento con Carta di Debito"
msgid "Debit Card Payment"
msgstr "Pagamento con Carta di Debito"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -588,7 +604,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -661,6 +677,26 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, fuzzy, python-format
#| msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgid "Payment Line has reference '%s'."
msgstr ""
"Non è possibile calcolare '%s' della linea di pagamento con riferimento '%s'."
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -837,7 +873,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr ""
@@ -853,7 +889,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -863,7 +899,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr ""
@@ -1036,3 +1072,11 @@ msgstr ""
#: selection:account.payment.method,pain_version:0
msgid "pain.008.003.02 (direct debit in Germany)"
msgstr ""
#~ msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
#~ msgstr ""
#~ "Non è possibile calcolare '%s' della linea di pagamento con riferimento "
#~ "'%s'."
#~ msgid "Cannot compute the '%s'."
#~ msgstr "Non è possibile calcolare '%s'."

View File

@@ -120,15 +120,9 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr ""
#. module: account_banking_pain_base
@@ -246,6 +240,21 @@ msgstr ""
msgid "Credit Card Payment "
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, python-format
msgid "Creditor name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
msgid "Debit Card Payment"
@@ -256,6 +265,12 @@ msgstr ""
msgid "Debit Card Payment"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -555,7 +570,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -628,6 +643,24 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, python-format
msgid "Payment Line has reference '%s'."
msgstr ""
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -805,7 +838,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr ""
@@ -821,7 +854,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -831,7 +864,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr ""

View File

@@ -119,15 +119,10 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr "Kan de '%s' niet berekenen van de betaalregel met referentie '%s'."
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, fuzzy, python-format
#| msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr "Kan de '%s' niet berekenen."
#. module: account_banking_pain_base
@@ -242,6 +237,21 @@ msgstr ""
msgid "Credit Card Payment "
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, python-format
msgid "Creditor name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
msgid "Debit Card Payment"
@@ -252,6 +262,12 @@ msgstr ""
msgid "Debit Card Payment"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -564,7 +580,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -639,6 +655,25 @@ msgstr ""
msgid "PAIN Version"
msgstr "PAIN Versie"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, fuzzy, python-format
#| msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgid "Payment Line has reference '%s'."
msgstr "Kan de '%s' niet berekenen van de betaalregel met referentie '%s'."
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -815,7 +850,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr "De '%s' is leeg of 0. Deze waarde zou niet nul moeten zijn."
@@ -831,7 +866,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -845,7 +880,7 @@ msgstr ""
"kunt geven over de oorzaak van het probleem: %s\""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr "Het type van veld '%s' is %s. Dit moet een string of unicode zijn."
@@ -1037,3 +1072,9 @@ msgstr ""
#: selection:account.payment.method,pain_version:0
msgid "pain.008.003.02 (direct debit in Germany)"
msgstr ""
#~ msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
#~ msgstr "Kan de '%s' niet berekenen van de betaalregel met referentie '%s'."
#~ msgid "Cannot compute the '%s'."
#~ msgstr "Kan de '%s' niet berekenen."

View File

@@ -119,16 +119,10 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr ""
"Não foi possível calcular a '%s' da linha de pagamento com referência '%s'"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, fuzzy, python-format
#| msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr "Não foi possível computar o '%s'"
#. module: account_banking_pain_base
@@ -243,6 +237,21 @@ msgstr ""
msgid "Credit Card Payment "
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, python-format
msgid "Creditor name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
msgid "Debit Card Payment"
@@ -253,6 +262,12 @@ msgstr ""
msgid "Debit Card Payment"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -551,7 +566,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -624,6 +639,26 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, fuzzy, python-format
#| msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgid "Payment Line has reference '%s'."
msgstr ""
"Não foi possível calcular a '%s' da linha de pagamento com referência '%s'"
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -799,7 +834,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr ""
@@ -815,7 +850,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -825,7 +860,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr ""
@@ -998,3 +1033,10 @@ msgstr ""
#: selection:account.payment.method,pain_version:0
msgid "pain.008.003.02 (direct debit in Germany)"
msgstr ""
#~ msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
#~ msgstr ""
#~ "Não foi possível calcular a '%s' da linha de pagamento com referência '%s'"
#~ msgid "Cannot compute the '%s'."
#~ msgstr "Não foi possível computar o '%s'"

View File

@@ -119,15 +119,10 @@ msgid "Cancellation Fee"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:104
#, python-format
msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgstr "Ne morem izračunati '%s' plačilne postavke s sklicem '%s'."
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:109
#, python-format
msgid "Cannot compute the '%s'."
#: code:addons/account_banking_pain_base/models/account_payment_order.py:101
#, fuzzy, python-format
#| msgid "Cannot compute the '%s'."
msgid "Cannot compute the field '{field_name}'."
msgstr "Ne morem izračunati '%s'."
#. module: account_banking_pain_base
@@ -242,6 +237,21 @@ msgstr ""
msgid "Credit Card Payment "
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:451
#, python-format
msgid "Creditor name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:107
#, python-format
msgid ""
"Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,purpose:0
msgid "Debit Card Payment"
@@ -252,6 +262,12 @@ msgstr ""
msgid "Debit Card Payment"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:453
#, python-format
msgid "Debtor name"
msgstr ""
#. module: account_banking_pain_base
#: selection:account.payment.line,category_purpose:0
msgid "Deliver Against Payment"
@@ -551,7 +567,7 @@ msgid "Medical Services"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:310
#: code:addons/account_banking_pain_base/models/account_payment_order.py:337
#, python-format
msgid ""
"Missing 'Initiating Party Issuer' and/or 'Initiating Party Identifier' for "
@@ -626,6 +642,25 @@ msgstr ""
msgid "PAIN Version"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:449
#, python-format
msgid "Partner name"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:146
#, python-format
msgid "Partner's bank account is '%s'."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:142
#, fuzzy, python-format
#| msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
msgid "Payment Line has reference '%s'."
msgstr "Ne morem izračunati '%s' plačilne postavke s sklicem '%s'."
#. module: account_banking_pain_base
#: model:ir.model,name:account_banking_pain_base.model_account_payment_line
msgid "Payment Lines"
@@ -801,7 +836,7 @@ msgid "Telephone Bill"
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:117
#: code:addons/account_banking_pain_base/models/account_payment_order.py:125
#, python-format
msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr "'%s' je prazno ali 0. Vsebovati bi moralo ne ničelno vrednost."
@@ -817,7 +852,7 @@ msgid ""
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:138
#: code:addons/account_banking_pain_base/models/account_payment_order.py:165
#, python-format
msgid ""
"The generated XML file is not valid against the official XML Schema "
@@ -830,7 +865,7 @@ msgstr ""
"dnevnike. Tu je napaka, ki bi lahko razjasnila, v čem je vzrok težave : %s"
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/account_payment_order.py:112
#: code:addons/account_banking_pain_base/models/account_payment_order.py:120
#, python-format
msgid "The type of the field '%s' is %s. It should be a string or unicode."
msgstr "Tip polja '%s' je %s. Moral bi biti niz ali unicode."
@@ -1024,3 +1059,9 @@ msgstr ""
#: selection:account.payment.method,pain_version:0
msgid "pain.008.003.02 (direct debit in Germany)"
msgstr ""
#~ msgid "Cannot compute the '%s' of the Payment Line with reference '%s'."
#~ msgstr "Ne morem izračunati '%s' plačilne postavke s sklicem '%s'."
#~ msgid "Cannot compute the '%s'."
#~ msgstr "Ne morem izračunati '%s'."

View File

@@ -98,15 +98,23 @@ class AccountPaymentOrder(models.Model):
for unallowed_ascii_char in unallowed_ascii_chars:
value = value.replace(unallowed_ascii_char, '-')
except Exception:
line = eval_ctx.get('line')
if line:
raise UserError(
_("Cannot compute the '%s' of the Payment Line with "
"reference '%s'.")
% (field_name, line.name))
else:
raise UserError(
_("Cannot compute the '%s'.") % field_name)
error_msg_prefix = _("Cannot compute the field '{field_name}'.") \
.format(
field_name=field_name)
error_msg_details_list = self.except_messages_prepare_field(
eval_ctx, field_name)
error_msg_data = _("Data for evaluation:\n"
"\tcontext: {eval_ctx}\n"
"\tfield path: {field_value}") \
.format(
eval_ctx=eval_ctx,
field_value=field_value)
raise UserError('\n'.join(
[error_msg_prefix]
+ error_msg_details_list
+ [error_msg_data]))
if not isinstance(value, str):
raise UserError(
_("The type of the field '%s' is %s. It should be a string "
@@ -120,6 +128,25 @@ class AccountPaymentOrder(models.Model):
value = value[0:max_size]
return value
@api.model
def except_messages_prepare_field(self, eval_ctx, field_name):
"""
Inherit this method to provide more detailed error messages for
exceptions to be raised while evaluating `field_name` using `eval_ctx`.
:return: List containing the error messages.
"""
error_messages = list()
line = eval_ctx.get('line')
if line:
error_messages.append(
_("Payment Line has reference '%s'.") % line.name)
partner_bank = eval_ctx.get('partner_bank')
if partner_bank:
error_messages.append(
_("Partner's bank account is '%s'.")
% partner_bank.display_name)
return error_messages
@api.model
def _validate_xml(self, xml_string, gen_args):
xsd_etree_obj = etree.parse(
@@ -419,15 +446,16 @@ class AccountPaymentOrder(models.Model):
In some localization (l10n_ch_sepa for example), they need the
bank_line argument"""
assert order in ('B', 'C'), "Order can be 'B' or 'C'"
party_type_label = _("Partner name")
if party_type == 'Cdtr':
party_type_label = 'Creditor'
party_type_label = _("Creditor name")
elif party_type == 'Dbtr':
party_type_label = 'Debtor'
party_type_label = _("Debtor name")
name = 'partner_bank.partner_id.name'
eval_ctx = {'partner_bank': partner_bank}
party_name = self._prepare_field(
'%s Name' % party_type_label, name, eval_ctx,
gen_args.get('name_maxsize'), gen_args=gen_args)
party_type_label, name, eval_ctx, gen_args.get('name_maxsize'),
gen_args=gen_args)
# At C level, the order is : BIC, Name, IBAN
# At B level, the order is : Name, IBAN, BIC
if order == 'C':