Event Sessions
event_session · OCA/event
Health
95/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 8 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
1.23 MB
Module directory on disk
Code analysis
1 migration note
9 models
22 views
1 HTTP endpoint
Migration considerations
EventSessionTimeslot— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module allows to create sessions associated with events.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 22
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
event_registration_report_template_foldable_badge |
event_registration_report_template_foldable_badge | ir.ui.view | qweb | Inherits event.event_registration_report_template_badge |
event_registration_report_template_full_page_ticket |
event_registration_report_template_full_page_ticket | ir.ui.view | qweb | Inherits event.event_registration_report_template_full_page_ticket |
event_registration_view_kanban |
event.registration | kanban | Inherits event.event_registration_view_kanban | |
view_event_form |
event.event | form | Inherits event.view_event_form | |
view_event_form_create_sessions |
event.event | form | Inherits event.view_event_form | |
view_event_kanban |
event.event | kanban | Inherits event.view_event_kanban | |
view_event_registration_calendar |
event.registration | calendar | Inherits event.view_event_registration_calendar | |
view_event_registration_form |
event.registration | form | Inherits event.view_event_registration_form | |
view_event_registration_graph |
event.registration | graph | Inherits event.view_event_registration_graph | |
view_event_registration_pivot |
event.registration | pivot | Inherits event.view_event_registration_pivot | |
view_event_registration_tree |
event.registration | tree | Inherits event.view_event_registration_tree | |
view_event_search |
event.event | search | Inherits event.view_event_search | |
view_event_session_calendar |
event.session | calendar | New | |
view_event_session_form |
event.session | form | New | |
view_event_session_form_quick_create |
event.session | form | New | |
view_event_session_kanban |
event.session | kanban | New | |
view_event_session_pivot |
event.session | pivot | New | |
view_event_session_search |
event.session | search | New | |
view_event_session_tree |
event.session | list | New | |
view_event_type_form |
event.type | form | Inherits event.view_event_type_form | |
view_registration_search |
event.registration | search | Inherits event.view_registration_search | |
view_wizard_event_session_form |
wizard.event.session | form | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/event/session/<model("event.session"):event_session>/ics |
EventSessionController.event_session_ics_file |
public | http | ALL |
Models touched 9
New fields (5)
-
date_beginDatetimecompute='_compute_date_begin'readonly=Falsestore=True -
date_endDatetimecompute='_compute_date_end'readonly=Falsestore=True -
session_countIntegercompute='_compute_session_count'string='Sessions Count' -
session_idsOne2many → event.sessioncomodel_name='event.session'inverse_name='event_id'string='Sessions' -
use_sessionsBooleancompute='_compute_use_sessions'help='Manage multiple sessions per event'readonly=Falsestore=Truestring='Event Sessions'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (2)
-
session_scheduler_idsOne2many → event.mail.sessioncomodel_name='event.mail.session'inverse_name='scheduler_id'string='Session Mails' -
use_sessionsBooleanrelated='event_id.use_sessions'
-
execute(self) -
schedule_communications(self, autocommit=False)@api.model
New fields (1)
-
session_scheduler_idMany2one → event.mail.sessioncomodel_name='event.mail.session'ondelete='cascade'string='Session Mail'
No public methods.
New fields (6)
-
mail_count_doneIntegercopy=Falsereadonly=True args: '# Sent' -
mail_doneBooleancopy=Falsereadonly=True args: 'Sent' -
mail_registration_idsOne2many → event.mail.registrationcomodel_name='event.mail.registration'inverse_name='session_scheduler_id' -
scheduled_dateDatetimecompute='_compute_scheduled_date'store=True -
scheduler_idMany2one → event.mailauto_join=Truecomodel_name='event.mail'ondelete='cascade'required=Truestring='Event Mail Scheduler' -
session_idMany2one → event.sessioncomodel_name='event.session'ondelete='cascade'required=Truestring='Session'
-
execute(self)Similar to core's :meth:`event.models.event_mail.execute`, only here we take values from the `event.session` instead. -
schedule_communications(self, autocommit=False)@api.modelSimilar to core's :meth:`event.models.event_mail.schedule_communications`.
New fields (4)
-
event_begin_dateDatetimecompute='_compute_event_begin_date'related=None -
event_end_dateDatetimecompute='_compute_event_end_date'related=None -
session_idMany2one → event.sessioncomodel_name='event.session'ondelete='restrict'string='Session' -
use_sessionsBooleanrelated='event_id.use_sessions'
-
get_date_range_str(self, lang_code=False)Compatibility with existing email templates: this method existed until v17, but in v18 it was removed in favor of using the event's _get_date_range_str() method, which is what we use now.
New fields (25)
-
activeBooleandefault=True -
date_beginDatetimerequired=Truestring='Start Date' -
date_begin_locatedCharcompute='_compute_date_begin_located'string='Start Date Located' -
date_endDatetimerequired=Truestring='End Date' -
date_end_locatedCharcompute='_compute_date_end_located'string='End Date Located' -
event_idMany2one → event.eventauto_join=Truecomodel_name='event.event'domain=[('use_sessions', '=', True)]index=Trueondelete='cascade'required=Truestring='Parent Event' -
event_mail_idsOne2many → event.mail.sessioncomodel_name='event.mail.session'compute='_compute_event_mail_ids'inverse_name='session_id'store=Truestring='Mail Schedule' -
event_registrations_openBooleancompute='_compute_event_registrations_open'compute_sudo=Truestring='Registration open' -
event_registrations_sold_outBooleancompute='_compute_event_registrations_sold_out'compute_sudo=Truestring='Sold Out' -
is_finishedBooleancompute='_compute_is_finished'search='_search_is_finished' -
is_one_dayBooleancompute='_compute_is_one_day' -
is_ongoingBooleancompute='_compute_is_ongoing'search='_search_is_ongoing' -
kanban_stateSelectioncopy=Falsedefault='normal'selection=<expr> -
kanban_state_labelCharcompute='_compute_kanban_state_label'store=Truetracking=True -
registration_idsOne2many → event.registrationcomodel_name='event.registration'inverse_name='session_id'string='Attendees' -
seats_availableIntegercompute='_compute_seats'store=Truestring='Available Seats' -
seats_available_unexpectedIntegercompute='_compute_seats_available_unexpected'compute_sudo=Truestring='Number of seats non allocated by an attendee of any kind' -
seats_expectedIntegercompute='_compute_seats_expected'compute_sudo=Truestring='Number of Expected Attendees' -
seats_reservedIntegercompute='_compute_seats'store=Truestring='Reserved Seats' -
seats_takenIntegercompute='_compute_seats'store=Truestring='Number of Taken Seats' -
seats_unconfirmedIntegercompute='_compute_seats_unconfirmed'store=Truestring='Unconfirmed Seat Reservations' -
seats_usedIntegercompute='_compute_seats'store=Truestring='Number of Participants' -
session_updateSelectiondefault='this'help='Choose what to do with other event sessions'store=False args: [('this', 'This session'), ('subsequent', 'This and following event sessions'), ('all', 'All event sessions')] -
session_update_messageTextcompute='_compute_session_update_message' -
stage_idMany2one → event.stagecomodel_name='event.stage'copy=Falsedefault=<expr>group_expand='_read_group_expand_full'ondelete='restrict'tracking=True
-
action_open_registrations(self)Open session registrations -
action_set_done(self)Similar to core's :meth:`event_event.action_set_done` -
create(self, vals_list)@api.model_create_multiSimilar to core's :meth:`event_event.create` -
mail_attendees(self, template_id, force_send=False, filter_func=<expr>)Mail session attendees Similar to core's :meth:`event.models.event.mail_attendees`, but here we take only the session's attendees into account. -
write(self, vals)
New fields (1)
-
timeFloatrequired=True
-
name_create(self, name)@api.model
New fields (1)
-
use_sessionsBooleanhelp='Manage multiple sessions per event'string='Event Sessions'
No public methods.
New fields (19)
-
bydaySelectionstring='By day' args: [('1', 'First'), ('2', 'Second'), ('3', 'Third'), ('4', 'Fourth'), ('-1', 'Last')] -
date_tzSelectionhelp='Set it up in the event configurationSessions will be generated up to this date'related='event_id.date_tz' -
dayIntegerdefault=1 -
durationFloatcompute='_compute_duration'help='Duration of the sessions in hours'readonly=Falserequired=Truestore=True -
event_idMany2one → event.eventcomodel_name='event.event'default=<expr>ondelete='cascade'readonly=Truerequired=True -
friBoolean -
intervalIntegerdefault=1required=True -
monBoolean -
month_bySelectiondefault='date' args: [('date', 'Date of month'), ('day', 'Day of month')] -
rrule_typeSelectiondefault='weekly'required=Truestring='Recurrence' args: [('weekly', 'Weeks'), ('monthly', 'Months')] -
satBoolean -
startDatecompute='_compute_start'readonly=Falserequired=Truestore=True -
sunBoolean -
thuBoolean -
timeslot_idsMany2many → event.session.timeslotcomodel_name='event.session.timeslot'required=Truestring='Time slots' -
tueBoolean -
untilDaterequired=True -
wedBoolean -
weekdaySelectionargs: [('MON', 'Monday'), ('TUE', 'Tuesday'), ('WED', 'Wednesday'), ('THU', 'Thursday'), ('FRI', 'Friday'), ('SAT', 'Saturday'), ('SUN', 'Sunday')]
-
action_create_sessions(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…