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_template_id

Inputs Method Outputs
to_reset = self.filtered(
            lambda act: act.state != 'mail_post' or \
                        (act.model_id != act.template_id.model_id)
        )
if to_reset:
            to_reset.template_id = False

Back to entity