gpa(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-574889-gpa into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574889-gpa/+merge/106135

Hello Sir,

[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" 

Traceback generated

This branch fixes this issue.
Please review this branch.

Thanks,
GPA
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574889-gpa/+merge/106135
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-574889-gpa.
=== modified file 'crm/wizard/crm_merge_opportunities.py'
--- crm/wizard/crm_merge_opportunities.py	2011-12-19 16:54:40 +0000
+++ crm/wizard/crm_merge_opportunities.py	2012-05-17 10:29:18 +0000
@@ -52,6 +52,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