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_available_peppol_edi_formats

View 19.0
Inputs Method Outputs
  • invoice_sending_method
+ for partner in self:
+             if partner.invoice_sending_method == 'peppol':
+                 partner.available_peppol_edi_formats = self._get_peppol_formats()
+             else:
+                 partner.available_peppol_edi_formats = list(dict(self._fields['invoice_edi_format'].selection))
  • available_peppol_edi_formats

Back to entity