changeset c2ffda040fb2 in modules/account_payment_stripe:default
details: 
https://hg.tryton.org/modules/account_payment_stripe?cmd=changeset;node=c2ffda040fb2
description:
        Do not depend on context for cache of customer payment methods

        issue9747
        review292541002
diffstat:

 payment.py |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r e1a591a2a01c -r c2ffda040fb2 payment.py
--- a/payment.py        Mon Nov 02 15:47:11 2020 +0100
+++ b/payment.py        Thu Nov 12 21:56:17 2020 +0100
@@ -1436,11 +1436,13 @@
     _sources_cache = Cache(
         'account_payment_stripe_customer.sources',
         duration=config.getint(
-            'account_payment_stripe', 'sources_cache', default=15 * 60))
+            'account_payment_stripe', 'sources_cache', default=15 * 60),
+        context=False)
     _payment_methods_cache = Cache(
         'account_payment_stripe_customer.payment_methods',
         duration=config.getint(
-            'account_payment_stripe', 'payment_methods', default=15 * 60))
+            'account_payment_stripe', 'payment_methods', default=15 * 60),
+        context=False)
 
     @classmethod
     def __setup__(cls):

Reply via email to