[FIX] website_event_sale: there is not self.pool in controllers

There is no such thing. request.registry must be used instead
of self.pool.

opw-632408
This commit is contained in:
Denis Ledoux
2015-04-08 16:40:32 +02:00
parent 4aa2e52b3d
commit 2ec254549c
@@ -66,7 +66,7 @@ class website_event(website_event):
# free tickets -> order with amount = 0: auto-confirm, no checkout
if not order.amount_total:
order.action_button_confirm() # tde notsure: email sending ?
attendees = self.pool['event.registration'].browse(cr, uid, list(attendee_ids), context=context)
attendees = request.registry['event.registration'].browse(cr, uid, list(attendee_ids), context=context)
# clean context and session, then redirect to the confirmation page
request.website.sale_reset(context=context)
return request.website.render("website_event.registration_complete", {