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

Module: Account Move Cut-off

Entity: account.move.line

Compute Method: _compute_is_deferrable_line

Inputs Method Outputs
for move_line in self:
            if (
                move_line.start_date
                and move_line.end_date
                and move_line.move_id.date
                and move_line.deferred_accrual_account_id
                and not move_line.cutoff_ids
                and move_line.has_deferred_dates()
            ):
                move_line.is_deferrable_line = True
            else:
                move_line.is_deferrable_line = False

Back to entity