From 35e31f1dbbbc7d85201489eb89d99b4e62e56623 Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Wed, 28 Feb 2018 16:09:24 +0100 Subject: [PATCH 1/2] [FIX] account_banking_pain_base. Only unidecode unicode objects. --- account_banking_pain_base/models/account_payment_order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_banking_pain_base/models/account_payment_order.py b/account_banking_pain_base/models/account_payment_order.py index 751096e22..21b638725 100644 --- a/account_banking_pain_base/models/account_payment_order.py +++ b/account_banking_pain_base/models/account_payment_order.py @@ -92,7 +92,8 @@ class AccountPaymentOrder(models.Model): # cf section 1.4 "Character set" of the SEPA Credit Transfer # Scheme Customer-to-bank guidelines if gen_args.get('convert_to_ascii'): - value = unidecode(value) + if isinstance(value, unicode): + value = unidecode(value) unallowed_ascii_chars = [ '"', '#', '$', '%', '&', '*', ';', '<', '>', '=', '@', '[', ']', '^', '_', '`', '{', '}', '|', '~', '\\', '!'] From 0d3c5d506ec95e6e206cfb1f420cddedba6a0cb7 Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Thu, 1 Mar 2018 15:03:22 +0100 Subject: [PATCH 2/2] [IMP] account_banking_pain_base. Increment module version. --- account_banking_pain_base/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_banking_pain_base/__manifest__.py b/account_banking_pain_base/__manifest__.py index 750b5808e..ae9af95f4 100644 --- a/account_banking_pain_base/__manifest__.py +++ b/account_banking_pain_base/__manifest__.py @@ -7,7 +7,7 @@ { 'name': 'Account Banking PAIN Base Module', 'summary': 'Base module for PAIN file generation', - 'version': '10.0.1.1.0', + 'version': '10.0.1.1.1', 'license': 'AGPL-3', 'author': "Akretion, " "Noviat, "