[FIX] payment: By assumption, first name is before last name
In the partner model, there is only one field `name`. The first name and the last name are not within two separated fields. By assumption, the firstname is written before the last name (first <> last) This assumption should be kept when sending the first name / last name of the partner to the payment acquirers e.g. Paypal. opw-643120
This commit is contained in:
parent
f07be4b675
commit
3375ff2827
|
@ -14,7 +14,7 @@ def _partner_format_address(address1=False, address2=False):
|
|||
|
||||
|
||||
def _partner_split_name(partner_name):
|
||||
return [' '.join(partner_name.split()[-1:]), ' '.join(partner_name.split()[:-1])]
|
||||
return [' '.join(partner_name.split()[:-1]), ' '.join(partner_name.split()[-1:])]
|
||||
|
||||
|
||||
class ValidationError(ValueError):
|
||||
|
|
Loading…
Reference in New Issue