changeset 9ac431c9ac95 in modules/web_shop_vue_storefront_stripe:default
details: 
https://hg.tryton.org/modules/web_shop_vue_storefront_stripe?cmd=changeset&node=9ac431c9ac95
description:
        Ensure payment journal is in the web shop currency

        issue10645
        review369401002
diffstat:

 web.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 36456e77d24b -r 9ac431c9ac95 web.py
--- a/web.py    Sun Jul 04 17:54:49 2021 +0200
+++ b/web.py    Thu Aug 19 22:27:02 2021 +0200
@@ -2,6 +2,7 @@
 # this repository contains the full copyright notices and license terms.
 from trytond.model import fields
 from trytond.pool import PoolMeta, Pool
+from trytond.pyson import Eval
 
 
 class Shop(metaclass=PoolMeta):
@@ -11,7 +12,9 @@
         'account.payment.journal', "Stripe Journal",
         domain=[
             ('stripe_account', '!=', None),
-            ])
+            ('currency', '=', Eval('currency', -1)),
+            ],
+        depends=['currency'])
 
     def vsf_order_create(self, data, sale, user):
         pool = Pool()

Reply via email to