diff options
Diffstat (limited to 'servo/templates')
-rw-r--r-- | servo/templates/admin/locations/form.html | 1 | ||||
-rwxr-xr-x | servo/templates/products/list_rows.html | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/servo/templates/admin/locations/form.html b/servo/templates/admin/locations/form.html index 777c9ab..0fad2bc 100644 --- a/servo/templates/admin/locations/form.html +++ b/servo/templates/admin/locations/form.html @@ -19,7 +19,6 @@ {% include "form_field_snippet.html" with field=form.city %} {% include "form_field_snippet.html" with field=form.timezone %} {% include "form_field_snippet.html" with field=form.notes %} - {% include "form_field_snippet.html" with field=form.logo %} {% include "form_field_snippet.html" with field=form.enabled %} </div> <div class="tab-pane" id="tab3"> diff --git a/servo/templates/products/list_rows.html b/servo/templates/products/list_rows.html index a753687..c8cf5bb 100755 --- a/servo/templates/products/list_rows.html +++ b/servo/templates/products/list_rows.html @@ -34,9 +34,9 @@ {% endwith %} <li><a href="{% url 'orders-create_with_product' product_id %}">{% trans "Create Sales Order" %}</a></li> <li><a href="{% url 'purchases-create_po' product_id=product_id %}">{% trans "Create Purchase Order" %}</a></li> - {% with request.session.current_po as po %} - {% if po %} - <li><a href="{% url 'purchases-add_to_po' pk=po.id product_id=product_id %}">{% trans "Use in Purchase Order" %}</a></li> + {% with request.session.current_po as po_pk %} + {% if po_pk %} + <li><a href="{% url 'purchases-add_to_po' pk=po_pk product_id=product_id %}">{% trans "Use in Purchase Order" %}</a></li> {% endif %} {% endwith %} <li class="divider"></li> |