[IMP] crm: made some little changes in domain for field 'stage_id'

bzr revid: cha@tinyerp.com-20120904093220-b2kunh9ccec9z3xo
This commit is contained in:
Ajay Chauhan (OpenERP)
2012-09-04 15:02:20 +05:30
parent 77b0b971d4
commit 5d2b0fc63b
+1 -1
View File
@@ -213,7 +213,7 @@ class crm_lead(base_stage, osv.osv):
'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority', select=True),
'date_closed': fields.datetime('Closed', readonly=True),
'stage_id': fields.many2one('crm.case.stage', 'Stage',
domain="['&', '|', ('section_ids', '=', section_id), ('case_default', '=', True), '&', ('fold', '=', False), '|', ('type', '=', type), ('type', '=', 'both')]"),
domain="['&', '&', '|', ('fold', '=', False),('section_ids', '=', section_id), ('case_default', '=', True), '|', ('type', '=', type), ('type', '=', 'both')]"),
'user_id': fields.many2one('res.users', 'Salesperson'),
'referred': fields.char('Referred By', size=64),
'date_open': fields.datetime('Opened', readonly=True),