aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-09-03 11:17:54 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-09-03 11:17:54 +0300
commitbb0ffafe4f040f4e69ecff6624ca73cb3db61bd0 (patch)
tree62ba732893e59d27fc5734336ffe6b5086dd9dc1 /servo/templates
parentb3e3941e811b23cc681945da1b1e26c818f9ace4 (diff)
downloadServo-bb0ffafe4f040f4e69ecff6624ca73cb3db61bd0.tar.gz
Servo-bb0ffafe4f040f4e69ecff6624ca73cb3db61bd0.tar.bz2
Servo-bb0ffafe4f040f4e69ecff6624ca73cb3db61bd0.zip
Fix issue with purchase orders
Diffstat (limited to 'servo/templates')
-rw-r--r--servo/templates/admin/locations/form.html1
-rwxr-xr-xservo/templates/products/list_rows.html6
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>