Commit fc9a5506 authored by Patrick's avatar Patrick

Always disable order confirmation buton if permanence is not open

parent a601664a
......@@ -1211,7 +1211,7 @@ def my_order_confirmation(permanence, customer_invoice, is_basket=False,
""" % (msg_delivery, msg_confirmation2, basket_message)
else:
msg_html = None
btn_disabled = EMPTY_STRING
btn_disabled = EMPTY_STRING if permanence.status == PERMANENCE_OPENED else "disabled"
msg_confirmation2 = EMPTY_STRING
if apps.REPANIER_SETTINGS_CUSTOMERS_MUST_CONFIRM_ORDERS:
if is_basket:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment