This commit improve event.type (Event Categories) model and views in order to ease event configuration through more detailed categories. The purpose is to be able to define categories holding default data for website, tickets, attendee mailing, ... Choosing a category on a new event takes those default values to help users creating finely-tuned events. Main configuration on event.type is * auto confirmation, replacing the old system-wide auto confirmation parameter * seats limitation * location: online events, timezone * communication: reply-to email address, twitter hashtag, automated mailing of attendees * ticketing * website parameters: display on website, display tracks, allow track proposal * question to attendees
15 lines
557 B
Python
15 lines
557 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import fields, models
|
|
|
|
class event_config_settings(models.TransientModel):
|
|
_name = 'event.config.settings'
|
|
_inherit = 'res.config.settings'
|
|
|
|
module_event_sale = fields.Boolean("Tickets")
|
|
module_website_event_track = fields.Boolean("Tracks and Agenda")
|
|
module_website_event_questions = fields.Boolean("Registration Survey")
|
|
module_event_barcode = fields.Boolean("Barcode")
|
|
module_website_event = fields.Boolean("Online Events")
|
|
module_website_event_sale = fields.Boolean("Online Ticketing")
|