New version 16.0
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--******************************************************************************
|
||||
# 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.
|
||||
#
|
||||
#******************************************************************************-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="acquirer_form_btcpay" model="ir.ui.view">
|
||||
<field name="name">acquirer.form.btcpay</field>
|
||||
<field name="model">payment.acquirer</field>
|
||||
<field name="inherit_id" ref="payment.acquirer_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr='//group[@name="acquirer"]' position='after'>
|
||||
<group attrs="{'invisible': [('provider', '!=', 'btcpay')]}">
|
||||
<field name="facade"/>
|
||||
<field name="location"/>
|
||||
<field name="confirmationURL"/>
|
||||
<field name="buyerNotification"/>
|
||||
<field name="pairingCode"/>
|
||||
<field name="token"/>
|
||||
<field name="privateKey"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="transaction_form_btcpay" model="ir.ui.view">
|
||||
<field name="name">acquirer.transaction.form.btcpay</field>
|
||||
<field name="model">payment.transaction</field>
|
||||
<field name="inherit_id" ref="payment.transaction_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr='//notebook' position='inside'>
|
||||
<page string="Btcpay TX Details">
|
||||
<group>
|
||||
<field name="btcpay_txid"/>
|
||||
<field name="btcpay_invoiceId" />
|
||||
<field name="btcpay_status"/>
|
||||
<field name="btcpay_buyerMailNotification"/>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--******************************************************************************
|
||||
# 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.
|
||||
#
|
||||
#******************************************************************************-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
<!--BtcPay Top Menu-->
|
||||
<menuitem id="btcpay_main_menu" name="BtcPay" icon="terp-sale" sequence="1"/>
|
||||
|
||||
<!--Main Menus-->
|
||||
<menuitem id="btcpay_configuration_menu" action="action_btcpay_instance" name="Configuration"
|
||||
parent="btcpay_main_menu" sequence="0"/>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -1,47 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--******************************************************************************
|
||||
# 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.
|
||||
#
|
||||
#******************************************************************************-->
|
||||
<odoo>
|
||||
|
||||
<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>
|
||||
<template id="redirect_form">
|
||||
<form t-att-action="api_url" method="post">
|
||||
<input type="hidden" name="reference" t-att-value="item_number"/>
|
||||
<input type="hidden" name="name" t-att-value="first_name"/>
|
||||
<input type="hidden" name="email" t-att-value="email"/>
|
||||
<input type="hidden" name="street" t-att-value="address1"/>
|
||||
<input type="hidden" name="zip" t-att-value="zip_code"/>
|
||||
<input type="hidden" name="city" t-att-value="city"/>
|
||||
<input type="hidden" name="currency_id" t-att-value="currency_code"/>
|
||||
<input type="hidden" name="country" t-att-value="country"/>
|
||||
<input type="hidden" name="custom" t-att-value="item_name"/>
|
||||
<input type="hidden" name="amount" t-att-value="amount"/>
|
||||
<input type="hidden" name="notify_url" t-att-value="notify_url"/>
|
||||
<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>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="payment_provider_form" model="ir.ui.view">
|
||||
<field name="name">BTCPay Provider Form</field>
|
||||
<field name="model">payment.provider</field>
|
||||
<field name="inherit_id" ref="payment.payment_provider_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="provider_credentials" position='inside'>
|
||||
<group attrs="{'invisible': [('code', '!=', 'btcpay')]}">
|
||||
<field name="btcpay_location"/>
|
||||
<field name="btcpay_confirmationURL"/>
|
||||
|
||||
<field name="btcpay_token"/>
|
||||
<field name="btcpay_privateKey"/>
|
||||
<field name="btcpay_facade"/>
|
||||
<field name="btcpay_pairingCode"/>
|
||||
</group>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="payment_transaction_form" model="ir.ui.view">
|
||||
<field name="name">BTCPay Transaction Form</field>
|
||||
<field name="model">payment.transaction</field>
|
||||
<field name="inherit_id" ref="payment.payment_transaction_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="provider_reference" position="after">
|
||||
<field name="btcpay_txid"/>
|
||||
<field name="btcpay_invoiceId" />
|
||||
<field name="btcpay_status"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user