Changing the name of model payment.acquirer to payment.provider and everything that it touches. It is technically incorrect to use the term "acquirer" for systems that only provide a service of payment. After this commit the model payment.acquirer and all related to it will be renamed to payment.provider. Task - 2842088 closes odoo/odoo#90899 Related: odoo/upgrade#3542 Related: odoo/documentation#1981 Related: odoo/enterprise#27131 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="redirect_form">
|
|
<form t-att-action="api_url" method="post">
|
|
<input type="hidden" name="reference" t-att-value="reference"/>
|
|
</form>
|
|
</template>
|
|
|
|
<template id="custom_transaction_status" inherit_id="payment.transaction_status">
|
|
<xpath expr="//div[@id='o_payment_status_alert']" position="inside">
|
|
<t t-if="tx.provider_id.sudo().code == 'custom'">
|
|
<div t-if="tx.reference">
|
|
<strong>Communication: </strong><span t-esc="tx.reference"/>
|
|
</div>
|
|
<div t-if="tx.provider_id.sudo().qr_code">
|
|
<t t-set="qr_code" t-value="tx.company_id.sudo().partner_id.bank_ids[:1].build_qr_code_base64(tx.amount, tx.reference, None, tx.currency_id, tx.partner_id)"/>
|
|
<div t-if="qr_code" class="mt-2">
|
|
<h3>Or scan me with your banking app.</h3>
|
|
<img class="border border-dark rounded" t-att-src="qr_code"/>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|