Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Peppol

Entity: res.partner

Compute Method: _compute_account_peppol_verification_label

View 17.0
Inputs Method Outputs
  • account_peppol_validity_last_check
  • is_peppol_edi_format
  • peppol_eas
  • peppol_endpoint
  • ubl_cii_format
  • account_peppol_is_endpoint_valid
- for partner in self:
-             if not partner.account_peppol_validity_last_check:
-                 partner.account_peppol_verification_label = 'not_verified'
-             elif (
-                 partner.is_peppol_edi_format
-                 and (participant_info := self._peppol_lookup_participant(f'{partner.peppol_eas}:{partner.peppol_endpoint}'.lower())) is not None
-                 and not partner._check_document_type_support(participant_info, partner.ubl_cii_format)
-             ):
-                 # the partner might exist on the network, but not be able to receive that specific format
-                 partner.account_peppol_verification_label = 'not_valid_format'
-             elif partner.account_peppol_is_endpoint_valid:
-                 partner.account_peppol_verification_label = 'valid'
-             else:
-                 partner.account_peppol_verification_label = 'not_valid'
  • account_peppol_verification_label

Back to entity