diff --git a/payment_btcpay/README.md b/payment_btcpay/README.md index 2c90e93..f691028 100644 --- a/payment_btcpay/README.md +++ b/payment_btcpay/README.md @@ -1,7 +1,7 @@ # payment_btcpay -# BTCPay Server payment gateway for Odoo 16.0 +# BTCPay Server payment gateway for Odoo 17.0 -## This is the module to connect Odoo 16.0 and BTCPay +## This is the module to connect Odoo 17.0 and BTCPay This module allows you to accept bitcoin (and other cryptocurrency) payments in your Odoo e-commerce store. ![BTCPay Server Website](../payment_btcpay/static/description/BTCPayServer_org.png) @@ -34,9 +34,15 @@ In the BTCPay settings form, tab "Credentials": * Field Facade, keep default 'merchant'. On the tab "Configuration": -* Set field "Payment Journal" to "Bank", you can click the dropdown and click on the suggestion "Bank" +* Make sure field "Payment Journal" is set to "Bank", otherwise you can click the dropdown and click on the suggestion "Bank" * Now you can **save** the settings +Check the payment method is enabled: +* Go to **Website** -> **Configuration** -> **Payment Methods** +* Make sure "Pay with Bitcoin / Lightning Network" is active + +Congrats, all done. Do some testing to be sure all works. + ![Payment Provider Settings](../payment_btcpay/static/description/BTCPayPaymentSettings.png) ## How does the payment page look? diff --git a/payment_btcpay/__init__.py b/payment_btcpay/__init__.py index a20ed67..fb28475 100644 --- a/payment_btcpay/__init__.py +++ b/payment_btcpay/__init__.py @@ -6,9 +6,9 @@ from . import models from odoo.addons.payment import setup_provider, reset_payment_provider -def post_init_hook(cr, registry): - setup_provider(cr, registry, 'btcpay') +def post_init_hook(env): + setup_provider(env, 'btcpay') -def uninstall_hook(cr, registry): - reset_payment_provider(cr, registry, 'btcpay') \ No newline at end of file +def uninstall_hook(env): + reset_payment_provider(env, 'btcpay') \ No newline at end of file diff --git a/payment_btcpay/__manifest__.py b/payment_btcpay/__manifest__.py index 5773280..357392d 100644 --- a/payment_btcpay/__manifest__.py +++ b/payment_btcpay/__manifest__.py @@ -1,7 +1,7 @@ #****************************************************************************** # PAYMENT BTCPAY FOR ODOO # -# Copyright (C) 2023 Susanna Fort +# Copyright (C) 2024 Susanna Fort , ndeet # #****************************************************************************** # @@ -21,11 +21,11 @@ { 'name': 'Payment Provider: BTCPay', - 'summary': 'This module integrates BTCPAY - pay with Bitcoin - with Odoo v16.0', + 'summary': 'This module integrates BTCPAY - pay with Bitcoin - with Odoo v17.0', 'author': 'Vandekul', 'website': 'https://github.com/btcpayserver/odoo', 'category': 'Accounting/Payment Providers', - 'version': '16.0.0', + 'version': '17.0.1.0', 'license': 'GPL-3', 'application': False, 'installable': True, diff --git a/payment_btcpay/data/payment_provider_data.xml b/payment_btcpay/data/payment_provider_data.xml index 78e7bfe..6865a0b 100644 --- a/payment_btcpay/data/payment_provider_data.xml +++ b/payment_btcpay/data/payment_provider_data.xml @@ -1,13 +1,26 @@ + + Pay with Bitcoin / Lightning Network + btcpay + True + + False + False + + BTCPay payments - Pay with Bitcoin / Lightning Network btcpay - + + \ No newline at end of file diff --git a/payment_btcpay/static/description/index.html b/payment_btcpay/static/description/index.html index cb97259..175b55f 100644 --- a/payment_btcpay/static/description/index.html +++ b/payment_btcpay/static/description/index.html @@ -4,7 +4,7 @@

BTCPay Gateway

-

This is the module to connect Odoo 16.0 and Btcpay

+

This is the module to connect Odoo 17.0 and BTCPay

diff --git a/payment_btcpay/views/payment_provider_views.xml b/payment_btcpay/views/payment_provider_views.xml index d2c3646..030d4fc 100644 --- a/payment_btcpay/views/payment_provider_views.xml +++ b/payment_btcpay/views/payment_provider_views.xml @@ -7,12 +7,12 @@ - + - +