Skip to content

Commit

Permalink
[ADD] event: option to install event_barcode
Browse files Browse the repository at this point in the history
New Enterprise module
  • Loading branch information
mba-odoo authored and tivisse committed Jun 13, 2016
1 parent 25504cc commit 703ccb9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
2 changes: 2 additions & 0 deletions addons/event/models/event_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
7 changes: 6 additions & 1 deletion addons/event/views/event_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
16 changes: 10 additions & 6 deletions addons/event_sale/report/event_event_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 703ccb9

Please sign in to comment.