[IMP] Improved code
bzr revid: ggh@tinyerp.com-20130515111644-z95wn1t0tful5o8z
This commit is contained in:
@@ -88,6 +88,7 @@ class sale_order_line(osv.osv):
|
||||
message = _("The registration has been <b>created</b> for event <i>%s</i> from the Sale Order %s. ") % (order_line.event_id.name, order_line.order_id.name)
|
||||
context.update({'sale_event': True, 'message': message })
|
||||
registration_id = registration_obj.create(cr, uid, dic, context=context)
|
||||
registration_obj.create_send_note(cr, uid, registration_id, context=context)
|
||||
return super(sale_order_line, self).button_confirm(cr, uid, ids, context=context)
|
||||
|
||||
sale_order_line()
|
||||
@@ -104,5 +105,5 @@ class event_registration(osv.osv):
|
||||
message = context.get("message")
|
||||
self.message_post(cr, uid, ids, body=message, context=context)
|
||||
else:
|
||||
super(event_registration, self).create_send_note(cr, uid, ids, context)
|
||||
super(event_registration, self).create_send_note(cr, uid, ids, context=context)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user