Browse Source

Add a condition

pull/125/head
steveferry 10 years ago
parent
commit
9a9dcb3a64
  1. 2
      partner_firstname/res_user.py

2
partner_firstname/res_user.py

@ -41,7 +41,7 @@ class ResUsers(orm.Model):
if 'name' in vals:
vals2['lastname'] = vals2['name']
elif partner.lastname:
elif partner.lastname and 'lastname' not in vals:
vals2['lastname'] = partner.lastname
elif 'login' in vals and 'lastname' not in vals:
vals2['lastname'] = vals2['login']

Loading…
Cancel
Save