From c49ffec86e2749674d1bf57340901646cadf505b Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Fri, 25 May 2012 17:27:38 +0200 Subject: [PATCH] [FIX] minor fixes and improvements assign the leads to the right uid remove the target attribute in the form view and render it 'inline' (not in a popup) add fields to the contact us form view bzr revid: abo@openerp.com-20120525152738-kf799ejmqi2yclav --- addons/portal_crm/wizard/contact.py | 3 ++- addons/portal_crm/wizard/contact_view.xml | 20 ++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/addons/portal_crm/wizard/contact.py b/addons/portal_crm/wizard/contact.py index 74ebe11cd7f..ffac2b7358d 100644 --- a/addons/portal_crm/wizard/contact.py +++ b/addons/portal_crm/wizard/contact.py @@ -24,7 +24,8 @@ 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,create_uid=uid), context) + #todo: add all the extra values in the 'description' field + crm_lead.create(cr, 1, dict(values,user_id=uid), context) """ Create an empty record in the portal_crm.crm_contact_us table """ return super(crm_contact_us, self).create(cr, uid, {}) diff --git a/addons/portal_crm/wizard/contact_view.xml b/addons/portal_crm/wizard/contact_view.xml index c86efe81ca4..b754383ca7f 100644 --- a/addons/portal_crm/wizard/contact_view.xml +++ b/addons/portal_crm/wizard/contact_view.xml @@ -7,9 +7,8 @@ Contact Us portal_crm.crm_contact_us form - inline - + @@ -22,8 +21,21 @@
- + + + + + + + + + + +