[IMP] account_payment_order: change 'bill reference' column value in reports

This commit is contained in:
Ernesto Tejeda
2020-02-20 15:24:41 -05:00
committed by Pedro M. Baeza
parent 73cd656088
commit cd562afe74
2 changed files with 7 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
{
'name': 'Account Payment Order',
'version': '12.0.1.3.0',
'version': '12.0.1.4.0',
'license': 'AGPL-3',
'author': "ACSONE SA/NV, "
"Therp BV, "

View File

@@ -81,7 +81,12 @@
<span t-esc="get_bank_account_name(line.partner_bank_id)"/>
</td>
<td class="text-center">
<span t-raw="'%s &lt;br&gt;' % line.move_line_id.invoice_id.number or line.move_line_id.move_id.name or ''"/>
<t t-if="line.move_line_id.invoice_id and 'in_' in line.move_line_id.invoice_id.type">
<span t-field="line.move_line_id.invoice_id.reference"/>
</t>
<t t-else="">
<span t-esc="line.move_line_id.invoice_id.number or line.move_line_id.move_id.name"/>
</t>
</td>
<td class="text-center">
<span t-field="line.date"/>