Checkout: get party payment when not payment selected

This commit is contained in:
resteve 2015-10-26 12:42:12 +01:00
parent cb219a9da4
commit 750602a106
1 changed files with 1 additions and 1 deletions

View File

@ -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