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

View 20.0
Inputs Method Outputs
  • model_id
  • model_id.model
+ 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
  • has_activity_plans

Back to entity