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

Module: Discuss

Entity: mail.activity

Compute Method: _compute_state

Inputs Method Outputs
for record in self.filtered(lambda activity: activity.date_deadline):
            tz = record.user_tz
            date_deadline = record.date_deadline
            record.state = 'done' if not record.active else self._compute_state_from_date(date_deadline, tz)

Back to entity