Skip to content
Snippets Groups Projects
Commit c3ee3f7e authored by Rohan Patel's avatar Rohan Patel Committed by Thibault Delavallée
Browse files

[FIX] sale_payment: do not propose to pay an order containing already payed transactions

parent 16a55872
No related branches found
No related tags found
No related merge requests found
<odoo>
<template id="portal_my_orders_payment" name="Payment on my orders" inherit_id="sale.portal_order_page">
<xpath expr="//t[@name='portal_confirmation_sign']" position="after">
<t t-if="not invoices and order.state in ('sent', 'sale') and portal_confirmation == 'pay'" name="portal_confirmation_pay">
<t t-if="not invoices and order.state in ('sent', 'sale') and portal_confirmation == 'pay' and order.payment_tx_id.state != 'done'" name="portal_confirmation_pay">
<a class="btn btn-primary ml8 pull-right" href="#portal_pay">
<i class="fa fa-arrow-circle-right"/> Pay Now
</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment