Skip to content
Snippets Groups Projects
Commit 72e31ce9 authored by Nicolas Russo's avatar Nicolas Russo
Browse files

Merge branch 'T8310' into 'master'

[IMP][T8404] OP currency fixed

See merge request !61
parents 3cb25e0d 78db5cea
No related branches found
No related tags found
1 merge request!61[IMP][T8404] OP currency fixed
......@@ -129,5 +129,59 @@
</table>
</div>
</xpath>
<xpath expr="//div[@id='payments']" position="replace">
<div id="payments">
<t t-if="o.payment_mode_line_ids">
<h3>Pagos</h3>
<table class="table-bordered" width="100%">
<thead>
<tr style="background: black; color: white; text-align: left;">
<th>
<strong>Medios de pago</strong>
</th>
<th>
<strong>Fecha de pago</strong>
</th>
<th>
<strong>Descripción</strong>
</th>
<th>
<strong>Monto</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-foreach="o.payment_mode_line_ids" t-as="line">
<td>
<span t-field="line.payment_mode_id.name" />
</td>
<td>
<span t-field="line.date" />
</td>
<td>
<span t-field="line.name" />
</td>
<td style="text-align: right;">
<span
t-field="line.amount"
t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'
/>
</td>
</tr>
<tr>
<td colspan="7" style="text-align: right;">
<strong>Total Medios de Pago:
<span
t-esc="sum(line.amount for line in o.payment_mode_line_ids)"
t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'
/>
</strong>
</td>
</tr>
</tbody>
</table>
</t>
</div>
</xpath>
</template>
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment