[IMP]: for stage type of mark lost and mark won
bzr revid: ksa@tinyerp.co.in-20110817124134-jkpomynnsu5r51wp
This commit is contained in:
+2
-2
@@ -212,10 +212,10 @@ class crm_case(crm_base):
|
||||
And object that inherit (orm inheritance) from a class the overwrite copy
|
||||
"""
|
||||
|
||||
def _find_lost_stage(self, cr, uid, type, section_id):
|
||||
def _find_lost_stage(self, cr, uid, section_id):
|
||||
return self._find_percent_stage(cr, uid, 0.0, section_id)
|
||||
|
||||
def _find_won_stage(self, cr, uid, type, section_id):
|
||||
def _find_won_stage(self, cr, uid, section_id):
|
||||
return self._find_percent_stage(cr, uid, 100.0, section_id)
|
||||
|
||||
def _find_percent_stage(self, cr, uid, percent, section_id):
|
||||
|
||||
@@ -61,7 +61,7 @@ class crm_opportunity(osv.osv):
|
||||
return res
|
||||
|
||||
value = {}
|
||||
stage_id = find_stage(cr, uid, 'opportunity', case.section_id.id or False)
|
||||
stage_id = find_stage(cr, uid, case.section_id.id or False)
|
||||
if stage_id:
|
||||
stage_obj = self.pool.get('crm.case.stage').browse(cr, uid, stage_id)
|
||||
value.update({'stage_id': stage_id})
|
||||
|
||||
Reference in New Issue
Block a user