--# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
attach_ids = self.get_attachments(cr, uid, opp, context=context)
self.set_attachements_res_id(cr, uid, first_opportunity.id, attach_ids)
for history in opp.message_ids:
- message_obj.copy(cr, uid, history.id, default={'res_id': opp.id})
++
+ new_history = message_obj.write(cr, uid, history.id, {'res_id': first_opportunity.id, 'name' : _("From %s : %s") % (opp.name, history.name) }, context=context)
#Notification about loss of information
details = []