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

Module: Online Event Booths

Entity: event.event

Compute Method: _compute_booth_menu

Inputs Method Outputs
  • event_type_id
  • event_type_id.booth_menu
  • website_menu
  • booth_menu
for event in self:
            if event.event_type_id and event.event_type_id != event._origin.event_type_id:
                event.booth_menu = event.event_type_id.booth_menu
            elif event.website_menu and (event.website_menu != event._origin.website_menu or not event.booth_menu):
                event.booth_menu = True
            elif not event.website_menu:
                event.booth_menu = False

Back to entity