changeset 1a0a22bfb0e7 in modules/account_payment_stripe:default
details:
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset&node=1a0a22bfb0e7
description:
Skip warnings for non-interactive operations
issue10096
review343671002
diffstat:
routes.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 609f92553eae -r 1a0a22bfb0e7 routes.py
--- a/routes.py Sat Apr 10 23:46:23 2021 +0200
+++ b/routes.py Mon Apr 12 17:44:16 2021 +0200
@@ -18,7 +18,7 @@
'/<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 @@
'/<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([