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.properties.base

Compute Method: _compute_publish_on

Inputs Method Outputs
for record in self:
            target = record.target_model_id
            if target and 'publish_on' in target._fields:
                record.publish_on = target.publish_on
            else:
                record.publish_on = False

Back to entity