When user save the record Country will be Automatically store in database using Server action. eg:when i save the record of Customer,Country name will be Automatically store.
country_obj = self.pool.get('res.country')
country_id = country_obj.search(cr, uid, [('name','=','india')])
par_obj = self.pool.get('res.partner')
pat_id = par_obj.search(cr,uid,[('id', '=', uid)],context=context)
for ids in par_obj.browse(cr,uid,pat_id,context=context):
if ids.country_id:
par_obj.write(cr, uid,pat_id,{'country_id':country_id}, context=context)