Files
odoo/payment_btcpay/views/payment_btcpay_templates.xml
2020-04-10 23:04:44 +02:00

47 lines
2.3 KiB
XML

<!--******************************************************************************
# PAYMENT BTCPAY FOR ODOO
#
# Copyright (C) 2020 Susanna Fort <susannafm@gmail.com>
#
#******************************************************************************
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# For a full copy of the GNU General Public License see the LICENSE.txt file.
#
#******************************************************************************-->
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="btcpay_acquirer_form" name="Btcpay Payment Button">
<form t-if="acquirer" action="/btcpay/checkout" method="post" target="_self">
<input type="hidden" name="acquirer" t-att-value="acquirer.id"/>
<input type="hidden" name="reference" t-att-value="reference"/>
<input type="hidden" name="name" t-att-value="partner_name"/>
<input type="hidden" name="email" t-att-value="partner_email"/>
<input type="hidden" name="street" t-att-value="partner_address"/>
<input type="hidden" name="zip" t-att-value="partner_zip"/>
<input type="hidden" name="city" t-att-value="partner_city"/>
<input type="hidden" name="currency_id" t-att-value="currency_id"/>
<input type="hidden" name="country" t-att-value="partner_country_id"/>
<input type="hidden" name="custom" t-att-value="custom"/>
<input type="hidden" name="amount" t-att-value="amount"/>
<button type="submit" width="100px" t-att-class="submit_class">
<img t-if="not submit_txt" src="/static/description/icon.png"/>
<span t-if="submit_txt"> <t t-esc="submit_txt"/> <span class="fa fa-long-arrow-right"/>
</span>
</button>
</form>
</template>
</data>
</openerp>