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

Module: Mail Activity Team

Entity: mail.activity.team

Compute Method: _compute_missing_activities

Inputs Method Outputs
activity_model = self.env["mail.activity"]
for team in self:
            domain = [("team_id", "=", False)]
            if team.member_ids:
                domain.append(("user_id", "in", team.member_ids.ids))
            if team.res_model_ids:
                domain.append(("res_model_id", "in", team.res_model_ids.ids))
            team.count_missing_activities = activity_model.search_count(domain)

Back to entity