Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Calendar
Entity: calendar.event
Compute Method: _compute_alarm_ids
| Inputs | Method | Outputs |
|---|---|---|
|
+ """ Set a default alarm on the event if it's not all day. No default alarm if all day.""" + default_alarm_id = self.env.ref('calendar.alarm_notif_1', raise_if_not_found=False) + for event in self: + if event.alarm_ids and event.alarm_ids._origin != default_alarm_id: + continue + event.alarm_ids = False if event.allday else default_alarm_id |
|
