Repository
odoo/odoo · module folder
Module version
1.2
Category
Marketing
Folder size
1.12 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-07 05:43:01
Authors
Maintainers
None
Committers
Fabien Pinckaers, Thibault Delavallée, Martin Trigaux, Odoo Translation Bot, Yannick Tivisse, Aurélien Warnon, Romeo Fragomeli, mafo-odoo, ijas ahammed, Florian Vranckx, amdi-odoo, Pierre-Yves Dufays, Levi Siuzdak (sile), Jérémy Hennecart (jeh), Martin Trigaux (mat)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
test_event_full, website_event_crm_questions, website_event_questions_by_ticket
Description
Questions on Events

Code Analysis

Views touched (11)
XML IDNameModelTypeStatus
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_ids One2many → event.question
    domain=[('once_per_order', '=', True)] args: 'event.question', 'event_id', 'General Questions'
  • question_ids One2many → event.question
    compute='_compute_question_ids' copy=True readonly=False store=True args: 'event.question', 'event_id', 'Questions'
  • specific_question_ids One2many → event.question
    domain=[('once_per_order', '=', False)] args: 'event.question', 'event_id', 'Specific Questions'
Public methods (0)

No public methods.

New fields (8)
  • answer_ids One2many → event.question.answer
    copy=True args: 'event.question.answer', 'question_id', 'Answers'
  • event_id Many2one → event.event
    ondelete='cascade' args: 'event.event', 'Event'
  • event_type_id Many2one → event.type
    ondelete='cascade' args: 'event.type', 'Event Type'
  • is_mandatory_answer Boolean
    args: 'Mandatory Answer'
  • once_per_order Boolean
    help='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_type Selection
    default='simple_choice' required=True string='Question Type' args: [('simple_choice', 'Selection'), ('text_box', 'Text Input')]
  • sequence Integer
    default=10
  • title Char
    required=True translate=True
Public methods (2)
  • 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)
  • name Char
    required=True translate=True args: 'Answer'
  • question_id Many2one → event.question
    ondelete='cascade' required=True args: 'event.question'
  • sequence Integer
    default=10
Public methods (0)

No public methods.

New fields (1)
  • registration_answer_ids One2many → event.registration.answer
    string='Attendee Answers' args: 'event.registration.answer', 'registration_id'
Public methods (0)

No public methods.

New fields (7)
  • event_id Many2one → event.event
    related='registration_id.event_id' args: 'event.event'
  • partner_id Many2one → res.partner
    related='registration_id.partner_id' args: 'res.partner'
  • question_id Many2one → event.question
    domain="[('event_id', '=', event_id)]" ondelete='restrict' required=True args: 'event.question'
  • question_type Selection
    related='question_id.question_type'
  • registration_id Many2one → event.registration
    ondelete='cascade' required=True args: 'event.registration'
  • value_answer_id Many2one → event.question.answer
    string='Suggested answer' args: 'event.question.answer'
  • value_text_box Text
    args: 'Text answer'
Public methods (1)
  • name_get(self)

New fields (1)
  • question_ids One2many → event.question
    copy=True string='Questions' args: 'event.question', 'event_type_id'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…