Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Advanced Events
Entity: event.track.location
Compute Method: _compute_location_display_url
| Inputs | Method | Outputs |
|---|---|---|
|
+ event_id = ( + self.env.context.get('active_id') + if self.env.context.get('active_model') == 'event.event' + else False + ) + if not event_id: + self.location_display_url = False + return + for location in self: + location.location_display_url = ( + f'/event/{event_id}/location-display/{location.id}' + if location.id else False + ) |
|
