mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix permission check
This commit is contained in:
parent
b34f39cc44
commit
6516d9dbe6
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user