Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-opw-574889-mma into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-574889-mma/+merge/132314

Hello,

[FIX] crm: When select leads and with wizard merge them error generated.

Steps to reproduce Error :
1. Select more than one lead from the list at Sales/Sales/Leads
2. Trigger the wizard "Merge Opportunities", then click "Merge"


This branch fixes this issue.
Code is forward port from 6.1

Thanks
Mayur
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-574889-mma/+merge/132314
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-opw-574889-mma.
=== modified file 'crm/wizard/crm_merge_opportunities.py'
--- crm/wizard/crm_merge_opportunities.py	2012-09-27 13:45:13 +0000
+++ crm/wizard/crm_merge_opportunities.py	2012-10-31 12:37:28 +0000
@@ -54,6 +54,8 @@
             opp_ids = []
             opps = self.pool.get('crm.lead').browse(cr, uid, record_ids, context=context)
             for opp in opps:
+                if opp.type == 'lead':
+                    raise osv.except_osv(_('Warning !'),_('Leads can not be merge'))
                 if opp.state not in ('done', 'cancel'):
                     opp_ids.append(opp.id)
             if 'opportunity_ids' in fields:

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to