Ensure payment journal is in the web shop currency

issue10645
review369401002
This commit is contained in:
Cédric Krier committed 2021-08-19 22:27:02 +02:00
1 parent cbd7b026bc
commit 8ffca13b34
1 file changed
+4 -1
+4 -1
View File
@@ -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()