Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: France - E-Invoicing (Approved Platform)

Entity: account.move

Compute Method: _compute_pdp_can_send_response

View 19.0 View 20.0
Inputs Method Outputs
  • peppol_message_uuid
  • peppol_is_sent
  • company_id
  • partner_id
for move in self:
            move.pdp_can_send_response = (
                bool(move.peppol_message_uuid)
                and move.peppol_is_sent
-                 and move.company_id._get_peppol_proxy_type() == 'pdp'
-                 and move.partner_id._get_pdp_receiver_identification_info()[0] == 'pdp'
+                 and move.partner_id.with_company(move.company_id).l10n_fr_is_pdp
            )
  • pdp_can_send_response

Back to entity