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
94 lines
5.0 KiB
XML
94 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="event_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">event.config.settings.form</field>
|
|
<field name="model">event.config.settings</field>
|
|
<field name="arch" type="xml">
|
|
<form String="Event settings" class="oe_form_configuration">
|
|
<header>
|
|
<button string="Save" type="object" name="execute" class="oe_highlight"/>
|
|
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
|
|
</header>
|
|
<sheet>
|
|
<h2>Advertising</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-xs-12 col-md-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_website_event"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="module_website_event"/>
|
|
<div class="text-muted">
|
|
Publish events on your website
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 col-md-6 o_setting_box" title="Add a navigation menu to your event web pages with schedule, tracks, a track proposal form, etc.">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_website_event_track"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label string="Schedule & Tracks" for="module_website_event_track"/>
|
|
<div class="text-muted">
|
|
Manage & publish a schedule with tracks
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h2>Registration</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-xs-12 col-md-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_event_sale"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="module_event_sale"/>
|
|
<div class="text-muted">
|
|
Sell tickets with sales orders
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 col-md-6 o_setting_box" name="event_settings_website">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_website_event_sale"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="module_website_event_sale"/>
|
|
<div class="text-muted">
|
|
Sell tickets on your website
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h2>Attendance</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-xs-12 col-md-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_event_barcode" widget="upgrade_boolean"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="module_event_barcode"/>
|
|
<div class="text-muted">
|
|
Scan badges to confirm attendances
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_event_configuration" model="ir.actions.act_window">
|
|
<field name="name">Configure Event</field>
|
|
<field name="res_model">event.config.settings</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">inline</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_event_global_settings" name="Settings"
|
|
parent="menu_event_configuration" sequence="0" action="action_event_configuration" groups="base.group_system"/>
|
|
</data>
|
|
</odoo>
|