Questions on Events
website_event_questions · odoo/odoo
Merged into website_event in 17.0
Replaces
website_event_questions_free_text (14.0) Health
76/100
good
-
Security25/25No findings
-
Activity6/25Last human commit 34 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 8 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
1.12 MB
Module directory on disk
Code analysis
6 migration notes
6 models
11 views
0 HTTP endpoints
Migration considerations
EventRegistrationAnswer— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceEventRegistrationAnswer— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceevent_event_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceevent_question_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceevent_registration_answer_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceevent_registration_view_form_inherit_question— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · 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
Questions on Events
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- test_event_full, website_event_crm_questions, website_event_questions_by_ticket
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 11
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
event_event_view_form |
event.event.view.form.inherit.question | event.event | form | Inherits website_event.event_event_view_form |
event_question_view_form |
event.question.view.form | event.question | form | New |
event_registration_answer_view_graph |
event.registration.answer.view.graph | event.registration.answer | graph | New |
event_registration_answer_view_pivot |
event.registration.answer.view.pivot | event.registration.answer | pivot | New |
event_registration_answer_view_search |
event.registration.answer.view.search | event.registration.answer | search | New |
event_registration_answer_view_tree |
event.registration.answer.view.tree | event.registration.answer | tree | New |
event_registration_view_form_inherit_question |
event.registration.view.form.inherit.question | event.registration | form | Inherits event.view_event_registration_form |
event_registration_view_tree |
event.registration.view.tree.inherit.website.event.questions | event.registration | tree | Inherits event.view_event_registration_tree |
event_type_view_form_inherit_question |
event.type.view.form.inherit.question | event.type | form | Inherits website_event.event_type_view_form |
registration_attendee_details_questions |
Registration Attendee Details with questions | ir.ui.view | qweb | Inherits website_event.registration_attendee_details |
registration_event_question |
Registration Event Question | ir.ui.view | qweb | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (3)
-
general_question_idsOne2many → event.questiondomain=[('once_per_order', '=', True)] args: 'event.question', 'event_id', 'General Questions' -
question_idsOne2many → event.questioncompute='_compute_question_ids'copy=Truereadonly=Falsestore=True args: 'event.question', 'event_id', 'Questions' -
specific_question_idsOne2many → event.questiondomain=[('once_per_order', '=', False)] args: 'event.question', 'event_id', 'Specific Questions'
No public methods.
New fields (8)
-
answer_idsOne2many → event.question.answercopy=True args: 'event.question.answer', 'question_id', 'Answers' -
event_idMany2one → event.eventondelete='cascade' args: 'event.event', 'Event' -
event_type_idMany2one → event.typeondelete='cascade' args: 'event.type', 'Event Type' -
is_mandatory_answerBooleanargs: 'Mandatory Answer' -
once_per_orderBooleanhelp='If True, this question will be asked only once and its value will be propagated to every attendees.If not it will be asked for every attendee of a reservation.' args: 'Ask once per order' -
question_typeSelectiondefault='simple_choice'required=Truestring='Question Type' args: [('simple_choice', 'Selection'), ('text_box', 'Text Input')] -
sequenceIntegerdefault=10 -
titleCharrequired=Truetranslate=True
-
action_view_question_answers(self)Allow analyzing the attendees answers to event questions in a convenient way: - A graph view showing counts of each suggestions for simple_choice questions (Along with secondary pivot and tree views) - A tree view showing textual answers values for text_box questions. -
write(self, vals)We add a check to prevent changing the question_type of a question that already has answers. Indeed, it would mess up the event.registration.answer (answer type not matching the question type).
New fields (3)
-
nameCharrequired=Truetranslate=True args: 'Answer' -
question_idMany2one → event.questionondelete='cascade'required=True args: 'event.question' -
sequenceIntegerdefault=10
No public methods.
New fields (1)
-
registration_answer_idsOne2many → event.registration.answerstring='Attendee Answers' args: 'event.registration.answer', 'registration_id'
No public methods.
New fields (7)
-
event_idMany2one → event.eventrelated='registration_id.event_id' args: 'event.event' -
partner_idMany2one → res.partnerrelated='registration_id.partner_id' args: 'res.partner' -
question_idMany2one → event.questiondomain="[('event_id', '=', event_id)]"ondelete='restrict'required=True args: 'event.question' -
question_typeSelectionrelated='question_id.question_type' -
registration_idMany2one → event.registrationondelete='cascade'required=True args: 'event.registration' -
value_answer_idMany2one → event.question.answerstring='Suggested answer' args: 'event.question.answer' -
value_text_boxTextargs: 'Text answer'
-
name_get(self)
New fields (1)
-
question_idsOne2many → event.questioncopy=Truestring='Questions' args: 'event.question', 'event_type_id'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…