Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1894 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
okt. 22
5150
2
mar. 21
3199
2
mar. 21
8138
0
dec. 20
3224
0
maj 20
2356