Porting module to work with Odoo 17.0 (#9)
This commit is contained in:
@@ -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')
|
||||
Reference in New Issue
Block a user