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

Compute Method: _compute_avatar_cache_key

View 18.0
Inputs Method Outputs
  • avatar_128
- for channel in self:
-             if not channel.avatar_128:
-                 channel.avatar_cache_key = 'no-avatar'
-             else:
-                 channel.avatar_cache_key = sha512(channel.avatar_128).hexdigest()
  • avatar_cache_key

Back to entity