aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/products
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/products
parentb3e3941e811b23cc681945da1b1e26c818f9ace4 (diff)
downloadServo-bb0ffafe4f040f4e69ecff6624ca73cb3db61bd0.tar.gz
Servo-bb0ffafe4f040f4e69ecff6624ca73cb3db61bd0.tar.bz2
Servo-bb0ffafe4f040f4e69ecff6624ca73cb3db61bd0.zip
Fix issue with purchase orders
Diffstat (limited to 'servo/templates/products')
-rwxr-xr-xservo/templates/products/list_rows.html6
1 files changed, 3 insertions, 3 deletions
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>