From 84bf0e24ca12474b222f8e4dd7355d11cdf0375c Mon Sep 17 00:00:00 2001 From: Joao Alfredo Gama Batista Date: Wed, 31 Dec 2014 20:03:07 -0500 Subject: [PATCH] [FIX] Make sure we create a new partner on import. --- base_contact_function_partner_firstname/res_partner.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/base_contact_function_partner_firstname/res_partner.py b/base_contact_function_partner_firstname/res_partner.py index d6dc9a460..6d058233e 100644 --- a/base_contact_function_partner_firstname/res_partner.py +++ b/base_contact_function_partner_firstname/res_partner.py @@ -57,9 +57,6 @@ class res_partner(orm.Model): vals['firstname'] = contact_info.firstname vals['title'] = contact_info.title.id or '' - if ('contact_id'in vals and ('reset_password' in context or - 'install_mode' in context)): - return vals['contact_id'] res = super(res_partner, self).create(cr, user, vals, context=context) return res