[ADD] event: option to install event_barcode

New Enterprise module
This commit is contained in:
Mahendra barad
2016-06-13 15:16:31 +02:00
committed by Yannick Tivisse
parent 25504cc11f
commit 703ccb9986
3 changed files with 18 additions and 7 deletions
@@ -32,6 +32,8 @@ class event_config_settings(osv.TransientModel):
], "Email Scheduling",
help='You will be able to configure emails, and to schedule them to be automatically sent to the attendees on registration and/or attendance',
implied_group='event.group_email_scheduling'),
'module_event_barcode': fields.boolean("Scan badges to confirm attendances",
help="Install the event_barcode module"),
}
def set_default_auto_confirmation(self, cr, uid, ids, context=None):
@@ -17,6 +17,11 @@
<field name="module_website_event_questions" widget="radio"/>
<field name="auto_confirmation" widget="radio"/>
<field name="group_email_scheduling" widget="radio"/>
<label for="id" string="Barcode Interface"/>
<div class="o_row">
<field name="module_event_barcode" widget="upgrade_boolean"/>
<label for="module_event_barcode"/>
</div>
</group>
</form>
</field>
@@ -30,6 +35,6 @@
</record>
<menuitem id="menu_event_global_settings" name="Settings"
parent="menu_event_configuration" sequence="0" action="action_event_configuration" groups="base.group_no_one"/>
parent="menu_event_configuration" sequence="0" action="action_event_configuration" groups="base.group_system"/>
</data>
</openerp>
@@ -2,17 +2,21 @@
<odoo>
<template id="event_registration_report_template_badge" inherit_id="event.event_registration_report_template_badge">
<xpath expr="//div[@id='o_event_name']" position="after">
<div t-if="o.event_ticket_id" class="col-xs-12 mt32 text-center" style="background: lightgrey; height: 65px">
<h3><span t-field="o.event_ticket_id"/></h3>
<xpath expr="//div[@id='o_event_name']" position="inside">
<div t-if="o.event_ticket_id" class="col-xs-12 text-center" style="padding:0px;">
<div style="background: lightgrey; height: 65px;" class="mt16 text-center">
<h3><span t-field="o.event_ticket_id"/></h3>
</div>
</div>
</xpath>
</template>
<template id="event_event_report_template_badge" inherit_id="event.event_event_report_template_badge">
<xpath expr="//div[@id='o_event_attendee_name']" position="after">
<div t-if="bool(len(event.event_ticket_ids))" class="col-xs-12 mt16 text-center" style="background: lightgrey; height: 65px;" t-ignore="true">
<h3>Ticket Type</h3>
<xpath expr="//div[@id='o_event_attendee_name']" position="inside">
<div t-if="bool(len(event.event_ticket_ids))" class="col-xs-12" style="padding: 0px;" t-ignore="true">
<div style="background: lightgrey; height: 65px;" class="mt16 text-center">
<h3>Ticket Type</h3>
</div>
</div>
</xpath>
</template>