[FIX]crm: crm lead/merge keystroke mistake, revert remove of minus
authordle@openerp.com <>
Tue, 2 Apr 2013 13:14:34 +0000 (15:14 +0200)
committerdle@openerp.com <>
Tue, 2 Apr 2013 13:14:34 +0000 (15:14 +0200)
bzr revid: dle@openerp.com-20130402131434-jkap5399rrfq8rm5

addons/crm/crm_lead.py

index e72c7dc..ec5bc8b 100644 (file)
@@ -632,7 +632,7 @@ class crm_lead(base_stage, format_address, osv.osv):
             sequence = -1
             if opportunity.stage_id and opportunity.stage_id.state != 'cancel':
                 sequence = opportunity.stage_id.sequence
-            sequenced_opps.append(((int(sequence != 1 and opportunity.type == 'opportunity'), sequence, -opportunity.id), opportunity))
+            sequenced_opps.append(((int(sequence != -1 and opportunity.type == 'opportunity'), sequence, -opportunity.id), opportunity))
 
         sequenced_opps.sort(reverse=True)
         opportunities = map(itemgetter(1), sequenced_opps)