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_date_done

Inputs Method Outputs
unarchived = self.filtered('active')
unarchived.date_done = False
toupdate = (self - unarchived).filtered(lambda act: not act.date_done)
toupdate.date_done = fields.Datetime.now()

Back to entity