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

Module: Blog

Entity: blog.post

Compute Method: _compute_post_date

View 18.0
Inputs Method Outputs
  • published_date
  • create_date
- for blog_post in self:
-             if blog_post.published_date:
-                 blog_post.post_date = blog_post.published_date
-             else:
-                 blog_post.post_date = blog_post.create_date
  • post_date

Back to entity