[IMP]: for stage type of mark lost and mark won

bzr revid: ksa@tinyerp.co.in-20110817124134-jkpomynnsu5r51wp
This commit is contained in:
ksa (Open ERP)
2011-08-17 18:11:34 +05:30
parent d7746c8403
commit 5e581e6188
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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):
+1 -1
View File
@@ -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})