2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +00:00

Fix for PurchaseOrder template (#4891)

- Fixes bug which removes javascript incorrectly
This commit is contained in:
Oliver 2023-05-25 09:39:55 +10:00 committed by GitHub
parent 53e442f555
commit 4868194a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,6 +130,7 @@
{% endblock page_content %}
{% block js_ready %}
{% settings_value "PURCHASEORDER_EDIT_COMPLETED_ORDERS" as allow_extra_editing %}
{{ block.super }}
@ -174,7 +175,7 @@
filterkey: "postock"
});
{% if order.status == PurchaseOrderStatus.PENDING %}
{% if order.is_open or allow_extra_editing %}
$('#new-po-line').click(function() {
createPurchaseOrderLineItem({{ order.pk }}, {