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

Inputs Method Outputs
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
            )

Back to entity