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

Module: Denmark - Accounting

Entity: account.move

Compute Method: _compute_nemhandel_can_send_response

View 20.0
Inputs Method Outputs
  • nemhandel_message_uuid
  • move_type
  • nemhandel_response_ids
  • partner_id
  • partner_id.nemhandel_response_support
+ for move in self:
+             move.nemhandel_can_send_response = (
+                 move.nemhandel_message_uuid
+                 and move.move_type in ('in_invoice', 'in_refund')
+                 and not move.nemhandel_response_ids.filtered(
+                     lambda r: r.nemhandel_state == 'not_serviced' or r.nemhandel_state != 'error',
+                 )
+                 and move.partner_id.nemhandel_response_support
+             )
  • nemhandel_can_send_response

Back to entity