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

Compute Method: _compute_assignation_summary

View 17.0
Inputs Method Outputs
  • template_ids
- self.assignation_summary = ''
- for plan in self.filtered('template_ids'):
-             summaries = [
-                 template.activity_type_id.name + (f": {template.summary}" if template.summary else '')
-                 for template in plan.template_ids
-             ]
-             if summaries:
-                 plan.assignation_summary = Markup('<ul>%s</ul>') % (
-                     Markup().join(Markup('<li>%s</li>') % summary for summary in summaries)
-                 )
-             else:
-                 plan.assignation_summary = ''
  • assignation_summary

Back to entity