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

Compute Method: _compute_next_activity_ids

View 19.0
Inputs Method Outputs
  • activity_type_id
+ """ Update next activities only when changing activity type on template.
+         Any change on type configuration should not be propagated. """
+ for template in self:
+             activity_type = template.activity_type_id
+             if activity_type.triggered_next_type_id:
+                 template.next_activity_ids = activity_type.triggered_next_type_id.ids
+             elif activity_type.suggested_next_type_ids:
+                 template.next_activity_ids = activity_type.suggested_next_type_ids.ids
+             else:
+                 template.next_activity_ids = False
  • next_activity_ids

Back to entity