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: account.move

Compute Method: _compute_peppol_move_state

Inputs Method Outputs
for move in self:
            if all([
                move.company_id.peppol_can_send,
                move.commercial_partner_id.peppol_verification_state == 'valid',
                move.state == 'posted',
                move.is_sale_document(include_receipts=True),
                not move.peppol_move_state,
            ]):
                move.peppol_move_state = 'ready'
            elif (
                move.state == 'draft'
                and move.is_sale_document(include_receipts=True)
                and not move.peppol_is_sent
            ):
                move.peppol_move_state = False
            else:
                move.peppol_move_state = move.peppol_move_state

Back to entity