fix permission check

This commit is contained in:
Matthias 2022-03-11 02:18:24 +01:00
parent b34f39cc44
commit 6516d9dbe6
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -49,7 +49,7 @@
<h4>{% trans "Additional Order Items" %}</h4>
{% include "spacer.html" %}
<div class='btn-group' role='group'>
{% if roles.purchase_order.change and order.is_pending %}
{% if roles.purchase_order.change and order.status == PurchaseOrderStatus.PENDING %}
<button type='button' class='btn btn-success' id='new-po-additional-line'>
<span class='fas fa-plus-circle'></span> {% trans "Add Additional Order Items" %}
</button>