Payments cart from sale shop and default customer payment

This commit is contained in:
resteve 2015-10-06 13:01:57 +02:00
parent 924097b78c
commit 56e7698a00
1 changed files with 4 additions and 0 deletions

View File

@ -955,6 +955,10 @@ def cart_list(lang):
if hasattr(party, 'customer_payment_type'):
if party.customer_payment_type:
default_payment = party.customer_payment_type
if party and hasattr(party, 'customer_payment_type'):
customer_payment = party.customer_payment_type
if not customer_payment in payments:
payments.append(customer_payment)
# Get carriers. Shop carriers or Party carrier
stockable = Carrier.get_products_stockable(products)