From 4f5d25c54afc18955386f72ff5caf59ed0a57b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9o=20Goddet?= Date: Mon, 24 Aug 2020 09:42:47 +0200 Subject: [PATCH] Use rights for svg download --- .../templates/accounting_tools/invoice/show.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/truffe2/accounting_tools/templates/accounting_tools/invoice/show.html b/truffe2/accounting_tools/templates/accounting_tools/invoice/show.html index 2265888e..3624929a 100644 --- a/truffe2/accounting_tools/templates/accounting_tools/invoice/show.html +++ b/truffe2/accounting_tools/templates/accounting_tools/invoice/show.html @@ -2,10 +2,8 @@ {% load i18n humanize rights_extras %} {% block bonus_buttons %} - {% if obj.status == '4_archived' or obj.status == '3_sent' or obj.status == '2_accord' %} + {% ifhasright obj user 'DOWNLOAD_PDF' %} QR-Facture - {% endif %} - {% if obj.status == '4_archived' or obj.status == '3_sent' or obj.status == '2_accord' %} PDF {% endifhasright %} {% endblock %}