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: website.visitor

Compute Method: _compute_blog_post_statistics

Inputs Method Outputs
  • id
mapped_data = self._get_visitor_statistics('blog_post_id')
for visitor in self:
            visitor.blog_post_ids = mapped_data[visitor.id]['ids']
            visitor.visitor_blog_post_count = mapped_data[visitor.id]['count']

Back to entity