Files
Odoo-Build/snippets/account_batch_payment.print_batch_payment.sort.xml
T
2025-01-03 14:39:51 +01:00

20 lines
812 B
XML

<?xml version="1.0"?>
<data inherit_id="account_batch_payment.print_batch_payment" priority="50">
<xpath expr=" //tr[@t-as='payment']" position="replace">
<tr t-foreach="sorted(page['payments'], key=lambda l: l.partner_id.name)" t-as="payment">
<td class="text-left">
<t t-esc="payment.partner_id.name"/>
</td>
<td class="text-left">
<t t-esc="payment.date" t-options="{&quot;widget&quot;: &quot;date&quot;}"/>
</td>
<td class="text-left">
<t t-esc="payment.ref"/>
</td>
<td class="text-right">
<t t-esc="payment.amount" t-options="{'widget': 'monetary', 'display_currency': payment.currency_id}"/>
</td>
</tr>
</xpath>
</data>