[IMP] website_sale_payment_terms: remember term choice and restore Return to Cart button

H5924
This commit is contained in:
Cedric Collins
2021-10-23 15:49:24 -05:00
parent 94bbc7c8e9
commit 2ed501ce2f
3 changed files with 27 additions and 56 deletions

View File

@@ -9,7 +9,7 @@ class WebsiteSalePaymentTerms(WebsiteSaleDelivery):
def payment(self, **post):
order = request.website.sale_get_order()
payment_term_id = post.get('payment_term_id')
if order.amount_total <= request.website.payment_deposit_threshold:
if order.amount_total > request.website.payment_deposit_threshold:
if payment_term_id:
payment_term_id = int(payment_term_id)
if order: