When posting multiple invoices, Tryton returns duplicate lines from invoice.party.addresses
I have the following code in my invoice report template:
<for each="address in invoice.party.addresses">
<if test="address.delivery">
<line>
</for>
</if>
</for>
When I post several invoices at once, the first for loop returns several lines for each address associated with a party. The exact number seems to vary between 2 and 6, probably in correlation with system load. The database in question only has 1 delivery address per party, although there are several addresses in the party_address__history table.
This is likely to be a regression from 4.0, since I haven't witnessed this behaviour before upgrading to 4.2.
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
invoice-20171037.pdf | @jani-matti | 2017-04-21 13:14:55.729000 UTC | application/pdf |
party_address data - party id 2193.txt | @jani-matti | 2017-04-21 15:56:00.995000 UTC | text/plain |
invoice-20172096.pdf | @jani-matti | 2017-04-22 13:20:43.891000 UTC | application/pdf |