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

View 20.0
Inputs Method Outputs
  • target_model_id
+ 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
  • publish_on

Back to entity