From 35c1c5fe3d5d964897899503647cab93f7d9971d Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Thu, 31 May 2012 17:15:31 +0200 Subject: [PATCH] [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 --- addons/portal_crm/wizard/contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal_crm/wizard/contact.py b/addons/portal_crm/wizard/contact.py index d389b8c5fb6..be21decafa9 100644 --- a/addons/portal_crm/wizard/contact.py +++ b/addons/portal_crm/wizard/contact.py @@ -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, {})