[FIX] when submitting the contact form, give the value 'False' to the 'salesperson' (user_id) field of the lead model

this makes more sense than assigning the lead to the anonymous user

bzr revid: abo@openerp.com-20120531151531-jx3uldytnh01gopy
This commit is contained in:
Antonin Bourguignon 2012-05-31 17:15:31 +02:00
parent 25d94450f9
commit 35c1c5fe3d
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class crm_contact_us(osv.TransientModel):
Therefore, user #1 will perform the creation until a better workaround
is figured out.
"""
crm_lead.create(cr, 1, dict(values,user_id=uid), context)
crm_lead.create(cr, 1, dict(values,user_id=False), context)
""" Create an empty record in the portal_crm.crm_contact_us table """
return super(crm_contact_us, self).create(cr, uid, {})