diff options
| author | pankita shah (Open ERP) <shp@tinyerp.com> | 2012-10-29 18:53:13 +0530 |
|---|---|---|
| committer | pankita shah (Open ERP) <shp@tinyerp.com> | 2012-10-29 18:53:13 +0530 |
| commit | 084a4217a7022fbf9ecaca6bbfed135798fe856c (patch) | |
| tree | 2074508652fbf41fa8758b5e35d8b6ec2d96bc6f | |
| parent | 55ce6a560fb31e86b3a0ae8d21ccaec9e48db3da (diff) | |
[FIX] fixed when select type opportunuty then opportunuty in draft mode
bzr revid: shp@tinyerp.com-20121029132313-5ctreoq9nv2fxvxc
| -rw-r--r-- | addons/crm/crm_lead.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 00ee7582c4d..da0a3f7d756 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -50,7 +50,7 @@ class crm_lead(base_stage, format_address, osv.osv): def _get_default_stage_id(self, cr, uid, context=None): """ Gives default stage_id """ section_id = self._get_default_section_id(cr, uid, context=context) - return self.stage_find(cr, uid, [], section_id, [('state', '=', 'draft'),'|', ('type', '=', 'lead'),('type', '=', 'both'),], context=context) + return self.stage_find(cr, uid, [], section_id, [('state', '=', 'draft'),'|', ('type', '=', 'lead'),'|',('type', '=', 'both'),('type','=','opportunity')], context=context) def _resolve_section_id_from_context(self, cr, uid, context=None): """ Returns ID of section based on the value of 'section_id' |
