[MERGE] forward port branch saas-11 up to 87e9639

This commit is contained in:
Christophe Simonis
2016-07-15 16:35:48 +02:00
+1 -1
View File
@@ -209,7 +209,7 @@ class WebsiteEventController(http.Controller):
if not events:
events = Event.search([('date_begin', '>=', '%s 00:00:00' % fields.Date.today()), ('state', '=', 'confirm')], order="date_begin")
for event in events:
if country_code and event.country.code == country_code:
if country_code and event.country_id.code == country_code:
result['country'] = country
result['events'].append({
"date": self.get_formated_date(event),