From 4759b86a2af99dd1885f68d8d9f38df34bc114c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Tarroja=20Caubet?= Date: Mon, 12 Apr 2021 17:44:16 +0200 Subject: [PATCH] Skip warnings for non-interactive operations issue10096 review343671002 --- routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes.py b/routes.py index f256539f02..15b1222cb4 100644 --- a/routes.py +++ b/routes.py @@ -18,7 +18,7 @@ logger = logging.getLogger(__name__) '//account_payment_stripe/checkout//', 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): '//account_payment_stripe/webhook/', 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([