コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1890 ビュー

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>


アバター
破棄
関連投稿 返信 ビュー 活動
2
10月 22
5148
2
3月 21
3197
2
3月 21
8132
0
12月 20
3220
0
5月 20
2351