details: https://code.tryton.org/tryton/commit/e0215f17958a
branch: default
user: Adrià Tarroja Caubet <[email protected]>
date: Wed May 13 11:25:48 2026 +0200
description:
Avoid crash on SEPA mandate report without bank
Closes #14831
diffstat:
modules/account_payment_sepa/mandate.fodt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r fb2059f65265 -r e0215f17958a modules/account_payment_sepa/mandate.fodt
--- a/modules/account_payment_sepa/mandate.fodt Tue May 19 18:19:59 2026 +0200
+++ b/modules/account_payment_sepa/mandate.fodt Wed May 13 11:25:48 2026 +0200
@@ -829,7 +829,7 @@
<text:p text:style-name="P15"/>
</table:table-cell>
<table:table-cell table:style-name="Table1.B1"
table:number-columns-spanned="2" office:value-type="string">
- <text:p text:style-name="Table_20_Contents"><text:placeholder
text:placeholder-type="text"><mandate.account_number.account.bank.bic if
mandate.account_number else ''></text:placeholder></text:p>
+ <text:p text:style-name="Table_20_Contents"><text:placeholder
text:placeholder-type="text"><mandate.account_number.account.bank.bic if
mandate.account_number and mandate.account_number.account.bank else
''></text:placeholder></text:p>
</table:table-cell>
<table:covered-table-cell/>
</table:table-row>