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

Module: Import/Export electronic invoices with UBL/CII

Entity: res.partner

Compute Method: _compute_hide_peppol_fields

Inputs Method Outputs
""" Hides the people fields depending on the UBL format. Can be extended to add different hiding conditions. """
for partner in self:
            partner.hide_peppol_fields = not partner.ubl_cii_format or partner.ubl_cii_format in ('zugferd', 'facturx')

Back to entity