Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Events Organization

Entity: event.mail

Compute Method: _compute_template_model_id

View 17.0
Inputs Method Outputs
  • notification_type
- mail_model = self.env['ir.model']._get('mail.template')
- for mail in self:
-             mail.template_model_id = mail_model if mail.notification_type == 'mail' else False
  • template_model_id

Back to entity