Create the party name using the registration name of the legal entity from UBL first
Closes #14514
This commit is contained in:
@@ -644,7 +644,9 @@ class Invoice(Model):
|
||||
pool = Pool()
|
||||
Party = pool.get('party.party')
|
||||
party = Party()
|
||||
party.name = party_el.findtext('./{*}PartyName/{*}Name')
|
||||
party.name = (
|
||||
party_el.findtext('./{*}PartyLegalEntity/{*}RegistrationName')
|
||||
or party_el.findtext('./{*}PartyName/{*}Name'))
|
||||
identifiers = []
|
||||
for identifier in party_el.iterfind('./{*}PartyIdentification/{*}ID'):
|
||||
if identifier.text:
|
||||
|
||||
Reference in New Issue
Block a user