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

Module: Forum

Entity: forum.post

Compute Method: _compute_is_follower

Inputs Method Outputs
followed = self.sudo().search([
            ('id', 'in', self.ids),
            ('follower_ids', '=', self._get_current_partner().id),
        ])
(self & followed).is_follower = True
(self - followed).is_follower = False

Back to entity