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