Checkout: get party payment when not payment selected
This commit is contained in:
parent
cb219a9da4
commit
750602a106
2
cart.py
2
cart.py
|
@ -809,7 +809,7 @@ def checkout(lang):
|
|||
# Payment
|
||||
payment = int(request.form.get('payment'))
|
||||
payment_type = None
|
||||
if party and hasattr(party, 'customer_payment_type'):
|
||||
if not payment and (party and hasattr(party, 'customer_payment_type')):
|
||||
if party.customer_payment_type:
|
||||
payment_type = party.customer_payment_type
|
||||
values['payment'] = payment_type.id
|
||||
|
|
Loading…
Reference in New Issue