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: ir.actions.server

Compute Method: _compute_has_activity_plans

Inputs Method Outputs
self.has_activity_plans = False
for action in self:
            action.has_activity_plans = self.env['mail.activity.plan'].search_count([
                '|', ('res_model', '=', False), ('res_model', '=', action.model_id.model)
            ], limit=1) > 0

Back to entity