[FIX] crm lead country id shoud respect the state
authorJigar Amin <jam@tinyerp.com>
Tue, 30 Oct 2012 09:08:06 +0000 (14:38 +0530)
committerJigar Amin <jam@tinyerp.com>
Tue, 30 Oct 2012 09:08:06 +0000 (14:38 +0530)
bzr revid: jam@tinyerp.com-20121030090806-kdhfku7g8c108s8j

addons/crm/crm_lead.py

index 00f083b..8ed4804 100644 (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),