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_role_id

View 20.0
Inputs Method Outputs
  • activity_type_id
  • activity_type_id.default_role_id
  • responsible_type
  • role_id
+ for template in self:
+             template.role_id = template.activity_type_id.default_role_id
+             if template.responsible_type != 'role' and template.role_id:
+                 template.role_id = False
  • role_id

Back to entity