[IMP]event_sale: remove contact_id

bzr revid: kjo@tinyerp.com-20120613120838-0rhk8aeq1mmt47m0
This commit is contained in:
Kuldeep Joshi (OpenERP) 2012-06-13 17:38:38 +05:30
parent 2b4f40108c
commit f7db94c2c5
1 changed files with 1 additions and 2 deletions

View File

@ -78,7 +78,6 @@ class sale_order_line(osv.osv):
dic = {
'name': order_line.order_id.partner_invoice_id.name,
'partner_id': order_line.order_id.partner_id.id,
'contact_id': order_line.order_id.partner_invoice_id.id,
'nb_register': int(order_line.product_uom_qty),
'email': order_line.order_id.partner_id.email,
'phone': order_line.order_id.partner_id.phone,
@ -89,5 +88,5 @@ class sale_order_line(osv.osv):
}
registration_id = registration_obj.create(cr, uid, dic, context=context)
message = _("The registration %s has been created from the Sale Order %s.") % (registration_id, order_line.order_id.name)
registration_obj.log(cr, uid, registration_id, message)
registration_obj.message_append_note(cr, uid, [registration_id], body=message, context=context)
return super(sale_order_line, self).button_confirm(cr, uid, ids, context=context)