[IMP] crm: pass remaining contact info on create partner in lead form
authorHarry (Open ERP) <hmo@tinyerp.com>
Thu, 4 Mar 2010 08:54:47 +0000 (14:24 +0530)
committerHarry (Open ERP) <hmo@tinyerp.com>
Thu, 4 Mar 2010 08:54:47 +0000 (14:24 +0530)
bzr revid: hmo@tinyerp.com-20100304085447-cjyqqoymrsth19w0

addons/crm/wizard/crm_lead_wizard.py

index 70c71e0..e119134 100644 (file)
@@ -98,7 +98,16 @@ class partner_create(wizard.interface):
                     'name': case.name,
                     'phone': case.phone,
                     'mobile': case.mobile,
-                    'email': case.email_from
+                    'email': case.email_from,
+                    'fax': case.fax,
+                    'title': case.title,
+                    'function': case.function and case.function.id or False,
+                    'street': case.street,
+                    'street2': case.street2,
+                    'zip': case.zip,
+                    'city': case.city,
+                    'country_id': case.country_id and case.country_id.id or False,
+                    'state_id': case.state_id and case.state_id.id or False,
                 })
 
             else: