[IMP] better domain for crm opportunities

bzr revid: fp@tinyerp.com-20121217173046-8w945atg1hxp2wum
This commit is contained in:
Fabien Pinckaers 2012-12-17 18:30:46 +01:00
parent 2aa92fdb69
commit 6a16fb2fde
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class crm_lead(base_stage, format_address, 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="['&', ('fold', '=', False), '&', '|', ('section_ids', '=', section_id), ('case_default', '=', True), '|', ('type', '=', type), ('type', '=', 'both')]"),
domain="[('fold', '=', False), ('section_ids', '=', section_id), '|', ('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),