diff --git a/modules/edocument_ubl/edocument.py b/modules/edocument_ubl/edocument.py index 1e40205d92..ae20bbc20e 100644 --- a/modules/edocument_ubl/edocument.py +++ b/modules/edocument_ubl/edocument.py @@ -1384,6 +1384,9 @@ class Invoice_Payment(metaclass=PoolMeta): invoice, attachments = super()._parse_invoice_2(root) if root.find('./{*}PaymentMeans/{*}PaymentMandate') is not None: invoice.payment_direct_debit = True + else: + invoice.payment_direct_debit = invoice.party.get_multivalue( + 'payment_direct_debit', company=invoice.company.id) return invoice, attachments @classmethod @@ -1391,6 +1394,9 @@ class Invoice_Payment(metaclass=PoolMeta): invoice, attachments = super()._parse_invoice_2(root) if root.find('./{*}PaymentMeans/{*}PaymentMandate') is not None: invoice.payment_direct_debit = True + else: + invoice.payment_direct_debit = invoice.party.get_multivalue( + 'payment_direct_debit', company=invoice.company.id) return invoice, attachments