Skip to Content
Menu
This question has been flagged
1464 Views

The printing of the payment receipt on any payment registered in Odoo 12, inserts only the invoices reconciled with the payment amount. But there is the account_voucher add-on that generates sales and purchase receipts that, such as invoices, can be reconciled, but are not invoices as such.

Within the Qweb of the payment receipts there is a foreach that runs through a list of the reconciled invoices, instead of that list of reconciled invoices I would like to insert the lines of the reconciled receipts, or both, invoices and reconciled receipts. How could I get that list? The following code is from that part of the foreach course:

.

<tbody>
<tr t-foreach="o.reconciled_invoice_ids" t-as="inv">
<td><span t-field="inv.date_invoice"/></td>
<td><span t-field="inv.number"/></td>
<td class="text-right"><span t-field="inv.amount_total"/></td>
<td class="text-right"><span t-esc="o._get_invoice_payment_amount(inv)" t-options="{'widget': 'monetary', 'display_currency': inv.currency_id}"/></td>
<td class="text-right"><span t-field="inv.residual"/></td>
</tr>
</tbody>


Avatar
Discard
Related Posts Replies Views Activity
2
Oct 22
4552
2
Mar 21
2510
2
Mar 21
7228
0
Dec 20
2695
0
May 20
1938