mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] website_sale_payment_terms: remember term choice and restore Return to Cart button
H5924
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user