[FIX] report should show the invoice number, not the move name (#477)

[IMP] account_payment_order: report show the invoice number or the move name
This commit is contained in:
Enric Tobella
2018-05-23 13:08:00 +02:00
committed by Carlos Roca
parent 0896ab6227
commit c58175bd6d
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -76,7 +76,7 @@
<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.move_id.name if line.move_line_id.move_id else ''"/>
<span t-raw="'%s &lt;br&gt;' % line.move_line_id.invoice_id.number or line.move_line_id.move_id.name or ''"/>
</td>
<td class="text-center">
<span t-field="line.date"/>