From 043fa95d9ec5d9d0d8f54c4b4b8ac41874cabfb4 Mon Sep 17 00:00:00 2001 From: Alex Alias Montserrar Date: Sun, 14 Sep 2025 11:47:59 +0200 Subject: [PATCH] Test if address has a country before display country name in SEPA mandate report Closes #14020 (grafted from 3f33d61ce4b3420e385d9a9fa6cd86d2ac455c7d) --HG-- branch : 6.0 --- modules/account_payment_sepa/mandate.fodt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_payment_sepa/mandate.fodt b/modules/account_payment_sepa/mandate.fodt index 11098c0745..39e45fd834 100644 --- a/modules/account_payment_sepa/mandate.fodt +++ b/modules/account_payment_sepa/mandate.fodt @@ -853,7 +853,7 @@ - <mandate.company.party.addresses[0].country.rec_name if mandate.company.party.addresses[0].country else ''> + <mandate.company.party.addresses[0].country.rec_name if mandate.company.party.addresses and mandate.company.party.addresses[0].country else ''>