[IMP] Typo

bzr revid: cbi@openerp.com-20121228122343-wulz32j4yfk5cot2
This commit is contained in:
Chris Biersbach
2012-12-28 13:23:43 +01:00
parent 39888a5128
commit 3ee1580802
+1 -1
View File
@@ -85,7 +85,7 @@ class crm_lead(base_stage, format_address, osv.osv):
}
def create(self, cr, uid, vals, context=None):
if not context.get('default_section', False) and vals.get('section_id', False):
if not context.get('default_section_id', False) and vals.get('section_id', False):
ctx = context.copy()
ctx['default_section_id'] = vals['section_id']
vals['stage_id'] = self._get_default_stage_id(cr, uid, context=ctx)