UI changes

This commit is contained in:
Oliver 2021-12-03 20:14:09 +11:00
parent 88fce1e813
commit c93009876d
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<h4>{% trans "Sales Order Items" %}</h4>
{% include "spacer.html" %}
<div class='btn-group' role='group'>
{% if roles.sales_order.change %}
{% if roles.sales_order.change and order.is_pending %}
<button type='button' class='btn btn-success' id='new-so-line'>
<span class='fas fa-plus-circle'></span> {% trans "Add Line Item" %}
</button>
@ -52,9 +52,11 @@
</ul>
{% endif %}
{% if roles.sales_order.change %}
<button type='button' class='btn btn-success' id='new-shipment'>
<span class='fas fa-plus-circle'></span> {% trans "New Shipment" %}
</button>
{% endif %}
</div>
</div>
</div>

View File

@ -1400,7 +1400,7 @@ function loadSalesOrderShipmentTable(table, options={}) {
},
{
field: 'reference',
title: '{% trans "Shipment" %}',
title: '{% trans "Shipment Reference" %}',
switchable: false,
},
{