[FIX] event_sale: traceback when confirming an event
bzr revid: chm@openerp.com-20140124132357-90mx68jr7vbxjw1c
This commit is contained in:
parent
f0606d3cc0
commit
9548b71db8
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue