diff --git a/modules/account_payment_sepa/template/base.003.xml b/modules/account_payment_sepa/template/base.003.xml index 53a55e1964..2ee63278f2 100644 --- a/modules/account_payment_sepa/template/base.003.xml +++ b/modules/account_payment_sepa/template/base.003.xml @@ -49,8 +49,11 @@ this repository contains the full copyright notices and license terms. --> ${normalize('NFKD', address.country.code).encode('ascii', 'replace')} - ${normalize('NFKD', ' '.join(address.street.splitlines()[0:1])).encode('ascii', 'replace')[:70]} - ${normalize('NFKD', ' '.join(address.street.splitlines()[1:])).encode('ascii', 'replace')[:70]} + + + ${normalize('NFKD', line).encode('ascii', 'replace')[:70]} + + diff --git a/modules/account_payment_sepa/template/base.xml b/modules/account_payment_sepa/template/base.xml index 09bbc17c8a..1f09536ed8 100644 --- a/modules/account_payment_sepa/template/base.xml +++ b/modules/account_payment_sepa/template/base.xml @@ -48,13 +48,17 @@ this repository contains the full copyright notices and license terms. --> - ${address.street[:70]} + ${address.street.splitlines()[0:1][:70]} ${address.postal_code[:16]} ${address.city[:35]} ${address.subdivision.rec_name[:35]} ${address.country.code} - + + + ${line[:70]} + +