Browse Source

FIX

pull/125/head
steveferry 10 years ago
parent
commit
4d35891d66
  1. 1
      partner_firstname/res_user.py

1
partner_firstname/res_user.py

@ -42,7 +42,6 @@ class ResUsers(orm.Model):
res_partner = self.pool.get('res.partner')
partner = res_partner.browse(cr, user, vals2['partner_id'],
context)
if partner.lastname:
vals2['lastname'] = partner.lastname
elif 'login' in vals and 'lastname' not in vals:
vals2['lastname'] = vals2['login']

Loading…
Cancel
Save