Merge lp:~rvalyi/openobject-addons/crm-fixes-opportunity-regression-1155679 into lp:openobject-addons/7.0

Proposed by Raphaël Valyi - http://www.akretion.com
Status: Rejected
Rejected by: Olivier Dony (Odoo)
Proposed branch: lp:~rvalyi/openobject-addons/crm-fixes-opportunity-regression-1155679
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
crm/crm_lead.py (+1/-1)
To merge this branch: bzr merge lp:~rvalyi/openobject-addons/crm-fixes-opportunity-regression-1155679
Reviewer Review Type Date Requested Status
Fabien (Open ERP) Disapprove
Olivier Dony (Odoo) Pending
Review via email: mp+153960@code.launchpad.net

Description of the change

fixes the bug https://bugs.launchpad.net/openobject-addons/+bug/1155679
applying solution 2) as suggested by several ERP specialists.

To post a comment you must log in.
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :
review: Disapprove

Unmerged revisions

8881. By Raphaël Valyi - http://www.akretion.com

[FIX][CRM] if contact belongs to a company, assign the company (instead of the contact) to the lead. The contact can still be viewed via the prospect tab.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'crm/crm_lead.py'
2--- crm/crm_lead.py 2013-03-13 12:12:21 +0000
3+++ crm/crm_lead.py 2013-03-18 23:25:35 +0000
4@@ -733,7 +733,7 @@
5 partner_id = False
6 if lead.partner_name and lead.contact_name:
7 partner_id = self._lead_create_contact(cr, uid, lead, lead.partner_name, True, context=context)
8- partner_id = self._lead_create_contact(cr, uid, lead, lead.contact_name, False, partner_id, context=context)
9+ self._lead_create_contact(cr, uid, lead, lead.contact_name, False, partner_id, context=context)
10 elif lead.partner_name and not lead.contact_name:
11 partner_id = self._lead_create_contact(cr, uid, lead, lead.partner_name, True, context=context)
12 elif not lead.partner_name and lead.contact_name: