Browse Source

[FIX] _get_inverse_name in case of space in name

pull/238/head
David Beal 9 years ago
committed by Yannick Vaucher
parent
commit
50498ce5ef
  1. 2
      partner_firstname/models.py

2
partner_firstname/models.py

@ -146,7 +146,7 @@ class ResPartner(models.Model):
parts = [name or False, False]
# Guess name splitting
else:
parts = name.split(" ", 1)
parts = name.strip().split(" ", 1)
while len(parts) < 2:
parts.append(False)
return {"lastname": parts[0], "firstname": parts[1]}

Loading…
Cancel
Save