From c24ba91ef90644d593bef9154411c3c658dbc2c8 Mon Sep 17 00:00:00 2001 From: "Farid Ghanchi (OpenERP)" Date: Wed, 15 May 2013 16:46:44 +0530 Subject: [PATCH] [IMP] Improved code bzr revid: ggh@tinyerp.com-20130515111644-z95wn1t0tful5o8z --- addons/event_sale/event_sale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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