From 2ec254549cd8d7c96dda6d5ea8a24ae7cc1d3f31 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 8 Apr 2015 16:39:31 +0200 Subject: [PATCH] [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 --- addons/website_event_sale/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_event_sale/controllers/main.py b/addons/website_event_sale/controllers/main.py index 189ee18d53c..8a5275c9afb 100644 --- a/addons/website_event_sale/controllers/main.py +++ b/addons/website_event_sale/controllers/main.py @@ -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", {