[FIX] crm lead country id shoud respect the state

bzr revid: jam@tinyerp.com-20121030090806-kdhfku7g8c108s8j
This commit is contained in:
Jigar Amin 2012-10-30 14:38:06 +05:30
parent a8546a3c97
commit ee4cd1af53
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class crm_lead(base_stage, format_address, osv.osv):
'street2': fields.char('Street2', size=128),
'zip': fields.char('Zip', change_default=True, size=24),
'city': fields.char('City', size=128),
'state_id': fields.many2one("res.country.state", 'State', domain="[('country_id','=',country_id)]"),
'state_id': fields.many2one("res.country.state", 'State'),
'country_id': fields.many2one('res.country', 'Country'),
'phone': fields.char('Phone', size=64),
'fax': fields.char('Fax', size=64),