From 8ffca13b34ec35008016b59a28f61b3508a7ca2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 19 Aug 2021 22:27:02 +0200 Subject: [PATCH] Ensure payment journal is in the web shop currency issue10645 review369401002 --- web.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web.py b/web.py index 25503b4f6e..428cc807f0 100644 --- a/web.py +++ b/web.py @@ -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 @@ class Shop(metaclass=PoolMeta): '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()