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_subject

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 composer_mixin.template_id.subject:
                composer_mixin.subject = composer_mixin.template_id.subject
            elif not composer_mixin.template_id:
                composer_mixin.subject = False

Back to entity