Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2325 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
okt. 22
5679
2
mrt. 21
3847
2
mrt. 21
8952
0
dec. 20
3741
0
mei 20
2836