[FIX] event_sale: traceback when confirming an event

bzr revid: chm@openerp.com-20140124132357-90mx68jr7vbxjw1c
This commit is contained in:
Christophe Matthieu 2014-01-24 14:23:57 +01:00
parent f0606d3cc0
commit 9548b71db8
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ class event_event(osv.osv):
def check_registration_limits(self, cr, uid, ids, context=None):
for event in self.browse(cr, uid, ids, context=context):
if event.event_ticket_ids:
event.event_ticket_ids.check_registration_limits_before(0)
for ticket in event.event_ticket_ids:
ticket.check_registration_limits_before(0)
return super(event_event, self).check_registration_limits(cr, uid, ids, context=context)