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

Module: Website

Entity: website.controller.page

Compute Method: _compute_name_slugified

View 17.0 View 18.0
Inputs Method Outputs
  • model_id
  • page_type
  • page_name
  • name
for rec in self:
-             if not rec.model_id or not rec.page_type:
+             if not rec.model_id:
+                 rec.name_slugified = False
                continue
-             rec.name_slugified = slugify(rec.page_name or '')
+             rec.name_slugified = self.env['ir.http']._slugify(rec.name or '')
  • name_slugified

Back to entity