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.composer.mixin

Compute Method: _compute_body

Inputs Method Outputs
""" Computation is coming either from template, either reset. When
        having a template with a value set, copy it. When removing the
        template, reset it. """
for composer_mixin in self:
            if not tools.is_html_empty(composer_mixin.template_id.body_html):
                composer_mixin.body = composer_mixin.template_id.body_html
            elif not composer_mixin.template_id:
                composer_mixin.body = False

Back to entity