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

Module: Discuss

Entity: discuss.channel.member

Compute Method: _compute_is_pinned

View 17.0 View 20.0
Inputs Method Outputs
  • unpin_dt
  • last_interest_dt
  • channel_id
  • channel_id.last_interest_dt
+ for member in self:
+             member.is_pinned = (
+                 not member.unpin_dt
+                 or (
+                     member.last_interest_dt
+                     and member.last_interest_dt >= member.unpin_dt
+                 )
+                 or (
+                     member.channel_id.last_interest_dt
+                     and member.channel_id.last_interest_dt >= member.unpin_dt
+                 )
+             )
  • is_pinned

Back to entity