diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-11-10 15:29:13 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-11-10 15:29:13 +0000 |
| commit | 2fd4e48cbb673175323fb866d87e654c5c9e05ac (patch) | |
| tree | e011821802ef6c9818ef78d6e0d12c28fee2c840 /addons/account_payment | |
| parent | 5fbd843bf089d0b7186e530266a6a7714432e90a (diff) | |
[FIX] account_payment: incorrect badge
- Allow online payments for invoices
- Create an invoice and assign it to Joel Willis. Post the invoice.
- Connect as Joel Willis and pay the invoice
In the `/my/invoices` view, the invoice is set as 'Paid' and 'Reversed'.
It should not be labeled as reversed.
The issue is probably a wrong copy-paste of the line above:
https://github.com/odoo/odoo/blob/478ebc74554f6609a1414726ee1f35fe5dcd6a81/addons/account_payment/views/account_portal_templates.xml#L28
Indeed, the `last_tx.state` has no impact on the fact that the payment
is reversed.
opw-2373146
closes odoo/odoo#61595
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/account_payment')
| -rw-r--r-- | addons/account_payment/views/account_portal_templates.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account_payment/views/account_portal_templates.xml b/addons/account_payment/views/account_portal_templates.xml index cff4e8158a4..d5b225a1ea6 100644 --- a/addons/account_payment/views/account_portal_templates.xml +++ b/addons/account_payment/views/account_portal_templates.xml @@ -28,7 +28,7 @@ <t t-if="invoice.state == 'posted' and invoice.payment_state in ('paid', 'in_payment') or last_tx.state == 'done'"> <span class="badge badge-pill badge-success"><i class="fa fa-fw fa-check"></i><span class="d-none d-md-inline"> Paid</span></span> </t> - <t t-if="invoice.state == 'posted' and invoice.payment_state == 'reversed' or last_tx.state == 'done'"> + <t t-if="invoice.state == 'posted' and invoice.payment_state == 'reversed'"> <span class="badge badge-pill badge-success"><i class="fa fa-fw fa-check"></i><span class="d-none d-md-inline"> Reversed</span></span> </t> <t t-if="invoice.state == 'cancel'"> |
