[FIX] account: fix double display of invoice

Steps to reproduce:
- Create a vendor bill with payment terms "30% Now, Balance 60 Days"
- register a partial payment and select "Mark as fully paid"
- open the payment and print the payment receipt

Issue:
the lines are printed twice

Addendum:
In Master (post saas-15.3), the `_get_reconciled_invoices_partials` returns a tuple:
https://github.com/odoo/odoo/blob/45e540b624268e65060f6b1aeaf2d87d7220b620/addons/account/models/account_move.py#L2475-L2493

opw-2964480

closes odoo/odoo#99997

X-original-commit: 9525c112e4048583e9b347b5703a416563085421
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
Yolann Sabaux
2022-09-12 13:49:40 +02:00
parent 5f499d170e
commit 5d5ff83a07
@@ -43,9 +43,10 @@
</tr>
</thead>
<tbody>
<t t-foreach="o.move_id._get_reconciled_invoices_partials()[0]" t-as="rec">
<t t-set="partials" t-value="o.move_id._get_reconciled_invoices_partials()[0]"/>
<t t-set="invoices" t-value="{partial[2].move_id for partial in partials}"/>
<t t-foreach="invoices" t-as="inv">
<!-- MOVE -->
<t t-set="inv" t-value="rec[2].move_id"/>
<t t-if="inv.move_type != 'entry'">
<tr>
<td><span t-field="inv.invoice_date"/></td>