details:   https://code.tryton.org/tryton/commit/0a3a22103c8c
branch:    7.8
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
        (grafted from f10a9c508cee8d18c6239ce12b0b95afffff5ac9)
diffstat:

 modules/edocument_peppol/account.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5ba5fabab1a2 -r 0a3a22103c8c 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,

Reply via email to