Fixes: buy_without_registration...
This commit is contained in:
parent
2b181b18cd
commit
56e33474dc
1 changed files with 1 additions and 1 deletions
|
|
@ -736,7 +736,7 @@ class Order(ExportModelOperationsMixin("order"), NiceModel):
|
||||||
)
|
)
|
||||||
|
|
||||||
payment_method = kwargs.get("payment_method")
|
payment_method = kwargs.get("payment_method")
|
||||||
available_payment_methods = cache.get("payment_methods")
|
available_payment_methods = cache.get("payment_methods").get("payment_methods")
|
||||||
|
|
||||||
if payment_method not in available_payment_methods:
|
if payment_method not in available_payment_methods:
|
||||||
raise ValueError(_(f"invalid payment method: {payment_method} from {available_payment_methods}"))
|
raise ValueError(_(f"invalid payment method: {payment_method} from {available_payment_methods}"))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue