party.tax_identifier is not the same as party.identifiers.
party.identifiers is the list of all the identifiers, otherwise, party.tax_identifier is the first identifier of identifiers that it’s purposed for taxes.
You can show it in your reports with:
<for each="idnt in invoice.party.identifiers">
<idnt.type_string>: <idnt.code>
</for>
Also, you could create a property in a custom module and use it in the report:
class Invoice(metaclass=PoolMeta):
__name__ = 'account.invoice'
@property
def report_party_identifiers(self):
party_identifiers = list(i.code for i in self.party.identifiers)
return ','.join(party_identifiers)
you seems to well known tryton, i am looking at the code to understand how to do things but i did not find somewhere something that could help me in computing the numbers of lines and the number of product in a sale.
what is similar i looked in invoice, account_move…