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.page

Compute Method: _compute_is_homepage

Inputs Method Outputs
website = self.env['website'].get_current_website()
for page in self:
            page.is_homepage = page.url == (website.homepage_url or page.website_id == website and '/')

Back to entity