Porting module to work with Odoo 17.0 (#9)

This commit is contained in:
ndeet
2024-07-08 09:10:22 +02:00
committed by GitHub
parent 27670dae99
commit cfbee77a5b
6 changed files with 34 additions and 15 deletions
+4 -4
View File
@@ -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')
def uninstall_hook(env):
reset_payment_provider(env, 'btcpay')