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_lang

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

Back to entity