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 %}