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

Inputs Method Outputs
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

Back to entity