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

Module: Account Invoice Blocking

Entity: account.move

Compute Method: _compute_move_blocked

Inputs Method Outputs
"""
        This method set the value of the field 'blocked' to True
        If every line of the move is actually blocked
        """
for move in self:
            move_lines = move._get_move_line()
            move.blocked = (
                all(line.blocked for line in move_lines) if move_lines else False
            )

Back to entity