Skip warnings for non-interactive operations

issue10096
review343671002
This commit is contained in:
Adrià Tarroja Caubet committed 2021-04-12 17:44:16 +02:00
1 parent be6a53d231
commit 4759b86a2a
1 file changed
+2 -2
+2 -2
View File
@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
'/<database_name>/account_payment_stripe/checkout/<model>/<id>',
methods=['GET', 'POST'])
@with_pool
@with_transaction()
@with_transaction(context={'_skip_warnings': True})
def checkout(request, pool, model, id):
Payment = pool.get('account.payment')
Customer = pool.get('account.payment.stripe.customer')
@@ -55,7 +55,7 @@ def checkout(request, pool, model, id):
'/<database_name>/account_payment_stripe/webhook/<account>',
methods={'POST'})
@with_pool
@with_transaction()
@with_transaction(context={'_skip_warnings': True})
def webhooks_endpoint(request, pool, account):
Account = pool.get('account.payment.stripe.account')
account, = Account.search([