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

Module: Social Media Base

Entity: social.post

Compute Method: _compute_send_post_date

Inputs Method Outputs
for post in self:
            if post.send_post == "schedule":
                post.send_post_date = fields.Datetime.now() + timedelta(hours=1)
            else:
                post.send_post_date = None

Back to entity