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

Module: Mail Whatsapp Gateway

Entity: mail.whatsapp.template

Compute Method: _compute_template_name

Inputs Method Outputs
for template in self:
            if not template.template_name or (
                template.state == "draft" and not template.template_uid
            ):
                template.template_name = re.sub(
                    r"\W+", "_", self.env["ir.http"]._slugify(template.name or "")
                )

Back to entity