details: https://code.tryton.org/tryton/commit/f10a9c508cee
branch: default
user: Cédric Krier <[email protected]>
date: Thu Dec 18 12:55:42 2025 +0100
description:
Test if Peppol types is not None before testing for billing
Closes #14436
diffstat:
modules/edocument_peppol/account.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 8743690048a7 -r f10a9c508cee modules/edocument_peppol/account.py
--- a/modules/edocument_peppol/account.py Tue Dec 16 11:56:31 2025 +0100
+++ b/modules/edocument_peppol/account.py Thu Dec 18 12:55:42 2025 +0100
@@ -45,7 +45,7 @@
continue
peppol_types = invoice.party.get_multivalue(
'peppol_types', company=invoice.company.id)
- if 'bis-billing-3' in peppol_types:
+ if peppol_types and 'bis-billing-3' in peppol_types:
peppol.append(Peppol(
direction='out',
company=invoice.company,