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.config.settings

Compute Method: _compute_peppol_participation_role

Inputs Method Outputs
  • company_id
  • company_id.account_peppol_proxy_state
for record in self:
            state = record.company_id.account_peppol_proxy_state
            if state == 'sender':
                record.peppol_participation_role = 'sending_only'
            elif state in ('smp_registration', 'receiver'):
                record.peppol_participation_role = 'sending_and_receiving'
            else:
                record.peppol_participation_role = False

Back to entity