details:   https://code.tryton.org/tryton/commit/3f9bfd6ce8b9
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Aug 24 11:56:05 2026 +0200
description:
        Include first line of unstructured street in AdrLine tag of SEPA message

        Since 327f65ad55e6 the StrtNm tag is no more the first line of the 
street so
        this lines must be included in AdrLine.

        Closes #15036
diffstat:

 modules/account_payment_sepa/template/base.003.xml |  2 +-
 modules/account_payment_sepa/template/base.xml     |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 1439af7bdd4c -r 3f9bfd6ce8b9 
modules/account_payment_sepa/template/base.003.xml
--- a/modules/account_payment_sepa/template/base.003.xml        Fri Aug 21 
10:04:05 2026 +0200
+++ b/modules/account_payment_sepa/template/base.003.xml        Mon Aug 24 
11:56:05 2026 +0200
@@ -50,7 +50,7 @@
     <py:def function="PostalAddress(address)">
         <Ctry py:if="address.country">${normalize('NFKD', 
address.country.code).encode('ascii', 'replace')}</Ctry>
         <py:if test="address.street">
-            <py:for each="line in address.street.splitlines()[1:8]">
+            <py:for each="line in address.street.splitlines()[:8]">
                 <AdrLine py:if="address.street">${normalize('NFKD', 
line).encode('ascii', 'replace')[:70]}</AdrLine>
             </py:for>
         </py:if>
diff -r 1439af7bdd4c -r 3f9bfd6ce8b9 
modules/account_payment_sepa/template/base.xml
--- a/modules/account_payment_sepa/template/base.xml    Fri Aug 21 10:04:05 
2026 +0200
+++ b/modules/account_payment_sepa/template/base.xml    Mon Aug 24 11:56:05 
2026 +0200
@@ -55,7 +55,7 @@
         <CtrySubDvsn 
py:if="address.subdivision">${address.subdivision.rec_name[:35]}</CtrySubDvsn>
         <Ctry py:if="address.country">${address.country.code}</Ctry>
         <py:if test="address.street_unstructured">
-            <py:for each="line in 
address.street_unstructured.splitlines()[1:8]">
+            <py:for each="line in 
address.street_unstructured.splitlines()[:8]">
                 <AdrLine py:if="line">${line[:70]}</AdrLine>
             </py:for>
         </py:if>

Reply via email to