Ila Rana(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-573096-ira into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-573096-ira/+merge/99300

Hello Naresh,

I have fixed the problem of "base_contact does not support lead_to_partner 
conversion".
At the time of partner creation the contact_id is not created. I have made 
changes in base_contact for same.

Thanks,
Ila Rana(ira)
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-573096-ira/+merge/99300
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-573096-ira.
=== modified file 'base_contact/base_contact.py'
--- base_contact/base_contact.py	2012-02-15 13:22:13 +0000
+++ base_contact/base_contact.py	2012-03-26 12:05:27 +0000
@@ -220,6 +220,16 @@
                 'state_id': data.get('state_id',False)
             }, context=context)
             data['location_id'] = loc_id
+        if not data.get('contact_id', False):
+            con_id = self.pool.get('res.partner.contact').create(cr, uid, {
+                 'last_name': data.get('name', ''),
+                 'title': data.get('title', ''),
+                 'mobile': data.get('mobile', ''),
+                 'email': data.get('email', ''),
+                 'partner_id': data.get('partner_id', False),
+                 'function' : data.get('function', '')
+            }, context=context)
+            data['contact_id'] = con_id
         result = super(res_partner_address, self).create(cr, uid, data, context=context)
         return result
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to