Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Events
Entity: event.event
Compute Method: _compute_is_visible_on_website
| Inputs | Method | Outputs |
|---|---|---|
|
+ if all(event.website_visibility == 'public' for event in self): + self.is_visible_on_website = True + return + for event in self: + if event.website_visibility == 'public' or event.is_participating: + event.is_visible_on_website = True + elif not self.env.user._is_public() and event.website_visibility == 'logged_users': + event.is_visible_on_website = True + else: + event.is_visible_on_website = False |
|
