account_reconciliation_widget: Use payment_ref for the statement line label

This commit is contained in:
Alexis de Lattre
2021-02-04 19:01:28 +01:00
committed by kelvzxu
parent d763540008
commit d5b4cbe393
2 changed files with 4 additions and 3 deletions

View File

@@ -1033,6 +1033,7 @@ class AccountReconciliation(models.AbstractModel):
# FIXME: where to fill?
# 'note': st_line.note or "",
"name": st_line.name,
"payment_ref": st_line.payment_ref,
"date": format_date(self.env, st_line.date),
"amount": amount,
"amount_str": amount_str, # Amount in the statement line currency

View File

@@ -149,8 +149,8 @@
/></td>
<td class="cell_due_date"><t t-esc="state.st_line.date" /></td>
<td class="cell_label"><t
t-if="state.st_line.name"
t-esc="state.st_line.name"
t-if="state.st_line.payment_ref"
t-esc="state.st_line.payment_ref"
/> <t t-if="state.st_line.amount_currency_str"> (<t
t-esc="state.st_line.amount_currency_str"
/>)</t></td>
@@ -562,7 +562,7 @@
<tr t-if="state.st_line.ref"><td>Transaction</td><td><t
t-esc="state.st_line.ref"
/></td></tr>
<tr><td>Description</td><td><t t-esc="state.st_line.name" /></td></tr>
<tr><td>Description</td><td><t t-esc="state.st_line.payment_ref" /></td></tr>
<tr><td>Amount</td><td><t t-raw="state.st_line.amount_str" /><t
t-if="state.st_line.amount_currency_str"
> (<t t-esc="state.st_line.amount_currency_str" />)</t></td></tr>