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.plan.template

Compute Method: _compute_activity_team_id

View 19.0
Inputs Method Outputs
  • activity_team_required
  • activity_type_id
  • activity_type_id.default_team_id
  • activity_team_id
+ """Assign the default team from the activity type"""
+ for template in self:
+             if template.activity_team_required:
+                 if template.activity_type_id.default_team_id:
+                     template.activity_team_id = (
+                         template.activity_type_id.default_team_id
+                     )
+             elif template.activity_team_id:
+                 template.activity_team_id = False
  • activity_team_id

Back to entity