Browse Source

[FIX] Make sure we create a new partner on import.

pull/75/head
Joao Alfredo Gama Batista 10 years ago
parent
commit
84bf0e24ca
  1. 3
      base_contact_function_partner_firstname/res_partner.py

3
base_contact_function_partner_firstname/res_partner.py

@ -57,9 +57,6 @@ class res_partner(orm.Model):
vals['firstname'] = contact_info.firstname vals['firstname'] = contact_info.firstname
vals['title'] = contact_info.title.id or '' 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) res = super(res_partner, self).create(cr, user, vals, context=context)
return res return res

Loading…
Cancel
Save