gestion des demandes d'évolution pour le centre kalachakra non géré dans les module booking et opendons
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

55 lines
2.7 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- modification de la page présentant la facture -->
<template id="portal_invoice_page" name="Invoice Portal Template" inherit_id="account.portal_invoice_page">
<xpath expr="//div[1][@class='small']" position="replace">
</xpath>
<xpath expr="//li[2][@class='list-group-item flex-grow-1']" position="replace">
</xpath>
</template>
<!-- alignement à droite du de l'entête champ status -->
<template id="kala_portal_my_invoices_payment" name="Payment on My Invoices" inherit_id="account_payment.portal_my_invoices_payment">
<xpath expr="//th[4]" position="replace">
<th class="text-left">Status</th>
</xpath>
<xpath expr="//th[5]" position="replace">
<th class="text-left"></th>
</xpath>
</template>
<template id="kala_portal_my_invoices" name="My Invoices and Payments" inherit_id="account.portal_my_invoices">
<xpath expr="t/t/thead/tr/th[6]" position="before">
<th class="text-right">Amount</th>
</xpath>
<xpath expr="t/t/tbody/t/tr/td[6]" position="before">
<td class="text-right"><span t-esc="invoice.amount_total" t-options='{"widget": "monetary", "display_currency": invoice.currency_id}'/></td>
</xpath>
</template>
<template id="kalachakra_portal_invoice_page_inherit_payment" name="Payment on My Invoices" inherit_id="account_payment.portal_invoice_page_inherit_payment">
<xpath expr="//a[@data-target='#pay_with']" position="replace">
<a href="#" t-if="invoice.state == 'posted' and invoice.down_payment_paid and invoice.is_balance_invoice and invoice.payment_state in ('not_paid', 'partial') and invoice.amount_total and invoice.move_type == 'out_invoice' and (pending_manual_txs or not tx_ids or invoice.amount_residual)"
class="btn btn-primary btn-block mb-2" data-toggle="modal" data-target="#pay_with">
<i class="fa fa-fw fa-arrow-circle-right"/> Pay Now
</a>
<a href="#" t-if="invoice.state == 'posted' and not invoice.is_balance_invoice and invoice.payment_state in ('not_paid', 'partial') and invoice.amount_total and invoice.move_type == 'out_invoice' and (pending_manual_txs or not tx_ids or invoice.amount_residual)"
class="btn btn-primary btn-block mb-2" data-toggle="modal" data-target="#pay_with">
<i class="fa fa-fw fa-arrow-circle-right"/> Pay Now
</a>
<div t-if="not invoice.down_payment_paid and invoice.is_balance_invoice" class="alert alert-info py-1 mb-2" >
<i class="fa fa-fw fa-check-circle"/> You must pay the down payment before
</div>
</xpath>
</template>
</odoo>