Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2268 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
říj 22
5624
2
bře 21
3793
2
bře 21
8875
0
pro 20
3665
0
kvě 20
2773