[FIX] if a parameter is mandatory, just don't provide a value for it...

bzr revid: xmo@openerp.com-20131125123655-pbli5hbazebup565
This commit is contained in:
Xavier Morel 2013-11-25 13:36:55 +01:00
parent a67b3adf80
commit 2b5d75d8c2
1 changed files with 1 additions and 2 deletions

View File

@ -185,8 +185,7 @@ class website_event(http.Controller):
return request.website.render("website_event.event_description_full", values)
@website.route(['/event/add_cart'], type='http', auth="public", multilang=True)
def add_cart(self, event_id=None, **post):
assert event_id, 'An event is required'
def add_cart(self, event_id, **post):
user_obj = request.registry['res.users']
order_line_obj = request.registry.get('sale.order.line')
ticket_obj = request.registry.get('event.event.ticket')