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

View 20.0
Inputs Method Outputs
  • peppol_message_uuid
  • move_type
  • peppol_response_ids
  • partner_id
  • partner_id.peppol_response_support
+ 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
+             )
  • peppol_can_send_response

Back to entity