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_post_preview

Inputs Method Outputs
"""Render the preview of the post, one template per selected media.

        Templates are looked up as
        ``social_media_{media_type}.social_media_post_preview``, falling
        back to the generic one of this module.
        """
for post in self:
            post.post_preview = post._render_template_preview()

Back to entity