Skip to content

Commit

Permalink
[FIX] website_event_sale: registration form without possibilities
Browse files Browse the repository at this point in the history
When there is no possibilities(no event_ticket_ids) the registration form
doesn't have to be displayed.

opw:668603
  • Loading branch information
simongoffin committed Feb 19, 2016
1 parent 406255a commit 1928ca9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/website_event_sale/views/website_event_sale.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
<button type="submit" t-if="event.state == 'confirm' and (event.seats_available or event.seats_availability == 'unlimited')"
class="btn btn-primary btn-lg pull-right a-submit" t-attf-id="#{event.id}">Order Now</button>
</xpath>
<xpath expr="//form[@id='registration_form']" position="attributes">
<attribute name="t-if">event.event_ticket_ids</attribute>
</xpath>
</template>

<template id="cart" inherit_id="website_sale.cart_lines" name="Hide product reduction for event tickets">
Expand Down

0 comments on commit 1928ca9

Please sign in to comment.