[IMP] solve bug when merge opportunities

bzr revid: aar@tinyerp.com-20110906070258-hcyvgcmvy9bkiuaz
This commit is contained in:
Amit Parmar (OpenERP)
2011-09-06 12:32:58 +05:30
parent 81c6a9c87f
commit ee8fb1c6f7
+1 -1
View File
@@ -136,7 +136,7 @@ class crm_merge_opportunity(osv.osv_memory):
data = self._update_data(op_ids, oldest_opp)
#copy message into the first opportunity + merge attachement
for opp in tail_opportunities + [first_opportunity]:
for opp in tail_opportunities:
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: