From ee8fb1c6f7949716b4e50084f5f9ec63ddf99425 Mon Sep 17 00:00:00 2001 From: "Amit Parmar (OpenERP)" Date: Tue, 6 Sep 2011 12:32:58 +0530 Subject: [PATCH] [IMP] solve bug when merge opportunities bzr revid: aar@tinyerp.com-20110906070258-hcyvgcmvy9bkiuaz --- addons/crm/wizard/crm_merge_opportunities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/wizard/crm_merge_opportunities.py b/addons/crm/wizard/crm_merge_opportunities.py index 57620f8c016..6d2c5a2abe1 100644 --- a/addons/crm/wizard/crm_merge_opportunities.py +++ b/addons/crm/wizard/crm_merge_opportunities.py @@ -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: