Skip to content
Permalink
Browse files

[FIX] account_payment: pay credit note

Complement of commit 9a450ac

opw-1958997
  • Loading branch information...
nim-odoo committed Mar 26, 2019
1 parent 2fa9e88 commit 51d2e83f9a4d455f90151761fffd53e866dce5d8
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/account_payment/views/account_portal_templates.xml
@@ -45,7 +45,7 @@
<template id="portal_invoice_page_inherit_payment" name="Payment on My Invoices" inherit_id="account.portal_invoice_page">
<xpath expr="//div[@id='o_portal_account_actions']/a" position="before">
<t t-set="tx_ids" t-value="invoice.payment_tx_ids.filtered(lambda tx: tx.state in ('pending', 'authorized', 'done'))"/>
<a t-if="not tx_ids and invoice.state == 'open' and invoice.amount_total"
<a t-if="not tx_ids and invoice.state == 'open' and invoice.amount_total and invoice.type == 'out_invoice'"
class="btn btn-primary pull-right ml8" href="#portal_pay">
<i class="fa fa-arrow-circle-right"/> Pay Now
</a>
@@ -66,7 +66,7 @@
</div>
</xpath>
<xpath expr="//div[hasclass('panel-body')]" position="after">
<div class="panel-body" t-if="not tx_ids and invoice.state == 'open' and invoice.amount_total" id="portal_pay">
<div class="panel-body" t-if="not tx_ids and invoice.state == 'open' and invoice.amount_total and invoice.type == 'out_invoice'" id="portal_pay">
<div t-if="pms or s2s_acquirers or form_acquirers" id="payment_method" class="col-md-offset-3 col-md-6">
<h4 class="mb24">Pay with</h4>
<t t-call="payment.payment_tokens_list">

0 comments on commit 51d2e83

Please sign in to comment.
You can’t perform that action at this time.