summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-08-27 18:18:01 +0200
committerThibault Delavallée <tde@openerp.com>2013-08-27 18:18:01 +0200
commit0dfe3a2e677aad8a4c03e215a81787f299707d98 (patch)
treebb8a295be2d69a82fa0ce1aacddfe3b1fc71ad74
parent4779df339eb8d7790cb7c6ac61d32f4d1d193f43 (diff)
[FIX] crm: fixed regression in merge_notify, due to a cleaning in opportunities merging a few months ago
bzr revid: tde@openerp.com-20130827161801-d8i11n5uq7n4v9r8
-rw-r--r--addons/crm/crm_lead.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py
index 6e8e966f5b0..9d17526c19f 100644
--- a/addons/crm/crm_lead.py
+++ b/addons/crm/crm_lead.py
@@ -636,7 +636,7 @@ class crm_lead(format_address, osv.osv):
# Merge notifications about loss of information
opportunities = [highest]
opportunities.extend(opportunities_rest)
- self._merge_notify(cr, uid, highest, opportunities, context=context)
+ self._merge_notify(cr, uid, highest.id, opportunities, context=context)
# Check if the stage is in the stages of the sales team. If not, assign the stage with the lowest sequence
if merged_data.get('section_id'):
section_stage_ids = self.pool.get('crm.case.stage').search(cr, uid, [('section_ids', 'in', merged_data['section_id']), ('type', '=', merged_data.get('type'))], order='sequence', context=context)