diff --git a/addons/event_sale/event_sale.py b/addons/event_sale/event_sale.py index 68a34135eaf..15e528dbaff 100644 --- a/addons/event_sale/event_sale.py +++ b/addons/event_sale/event_sale.py @@ -88,6 +88,7 @@ class sale_order_line(osv.osv): message = _("The registration has been created for event %s 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