Commit 308d710c by François C.

#4081 : Fix prepa odoo choose shift template bug

parent 644261a5
Pipeline #2727 passed with stage
in 1 minute 27 seconds
...@@ -137,6 +137,7 @@ def prepa_odoo(request): ...@@ -137,6 +137,7 @@ def prepa_odoo(request):
'ask_for_street2': getattr(settings, 'SUBSCRIPTION_ADD_STREET2', False), 'ask_for_street2': getattr(settings, 'SUBSCRIPTION_ADD_STREET2', False),
'ask_for_second_phone': getattr(settings, 'SUBSCRIPTION_ADD_SECOND_PHONE', False), 'ask_for_second_phone': getattr(settings, 'SUBSCRIPTION_ADD_SECOND_PHONE', False),
'show_ftop_button': getattr(settings, 'SHOW_FTOP_BUTTON', True), 'show_ftop_button': getattr(settings, 'SHOW_FTOP_BUTTON', True),
'committees_shift_id': CagetteServices.get_committees_shift_id(),
'db': settings.COUCHDB['dbs']['member']} 'db': settings.COUCHDB['dbs']['member']}
# with_addr_complement # with_addr_complement
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
var type = 2; var type = 2;
var context = 'validation'; var context = 'validation';
let manage_ftop = {% if show_ftop_button %}true{% else %}false{% endif %}; let manage_ftop = {% if show_ftop_button %}true{% else %}false{% endif %};
var committees_shift_id = '{{committees_shift_id}}';
</script> </script>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
......
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