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_can_send_response
| Inputs | Method | Outputs |
|---|---|---|
|
+ for move in self: + move.peppol_can_send_response = ( + move.peppol_message_uuid + and move.move_type in ('in_invoice', 'in_refund') + and not move.peppol_response_ids.filtered( + lambda r: r.peppol_state == 'not_serviced' or (r.peppol_state != 'error' and r.response_code in ('AP', 'RE')), + ) + and move.partner_id.peppol_response_support + ) |
|
