fix error message on wrong buyer-party
This commit is contained in:
parent
144bbf37a1
commit
c5843caf00
1 changed files with 5 additions and 2 deletions
|
@ -380,7 +380,8 @@ class Incoming(metaclass=PoolMeta):
|
|||
'document_incoming_invoice_xml.msg_no_supplierparty',
|
||||
partytxt=', '.join([
|
||||
seller_party[x].replace('\n', '; ')
|
||||
for x in seller_party.keys()])))
|
||||
for x in seller_party.keys()
|
||||
if isinstance(seller_party[x], str)])))
|
||||
|
||||
# check if we found our company
|
||||
buyer_party = self.parsed_data.get('buyer_party', None)
|
||||
|
@ -392,7 +393,8 @@ class Incoming(metaclass=PoolMeta):
|
|||
'document_incoming_invoice_xml.msg_not_our_company',
|
||||
partytxt=', '.join([
|
||||
buyer_party[x].replace('\n', '; ')
|
||||
for x in buyer_party.keys()])))
|
||||
for x in buyer_party.keys()
|
||||
if isinstance(buyer_party[x], str)])))
|
||||
|
||||
lines_data = copy.deepcopy(self.parsed_data.get('lines_data', None))
|
||||
if lines_data:
|
||||
|
@ -499,6 +501,7 @@ class Incoming(metaclass=PoolMeta):
|
|||
create_party=False)
|
||||
if buyer_party:
|
||||
self.parsed_data['buyer_party'] = buyer_party
|
||||
print('\n# buyer_party-read:', buyer_party)
|
||||
|
||||
# invoice - lines
|
||||
# rsm:CrossIndustryInvoice/
|
||||
|
|
Loading…
Reference in a new issue