[REM]:Remove unwanted code

bzr revid: aja@tinyerp.com-20121025102636-gsbkpfs2q85yo3lu
This commit is contained in:
ajay javiya (OpenERP) 2012-10-25 15:56:36 +05:30
parent 8bc8b450ef
commit 1ef9c07654
1 changed files with 5 additions and 3 deletions

View File

@ -897,10 +897,12 @@ class crm_lead(base_stage, format_address, osv.osv):
return True
def onchange_state(self, cr, uid, ids, state_id, context=None):
country_id = False
if state_id:
state=self.pool.get('res.country.state').browse(cr, uid, state_id, context)
return {'value':{'state_id':state_id,'country_id':state.country_id.id,'zip':''}}
return {'value':{'state_id':state_id,'country_id':'','zip':''}}
country_id=self.pool.get('res.country.state').browse(cr, uid, state_id, context).country_id.id
return {'value':{'state_id':state_id,
'country_id':country_id,
'zip':False}}
crm_lead()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: