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([