From 5a265408a322fbecfee087abe2a376c29cc2f4f5 Mon Sep 17 00:00:00 2001 From: saurabh Date: Fri, 19 Feb 2016 11:14:10 +0530 Subject: [PATCH] fixed issue of stock_uom translator --- erpnext/templates/print_formats/includes/item_table_qty.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/templates/print_formats/includes/item_table_qty.html b/erpnext/templates/print_formats/includes/item_table_qty.html index 812da43bac..0c80069885 100644 --- a/erpnext/templates/print_formats/includes/item_table_qty.html +++ b/erpnext/templates/print_formats/includes/item_table_qty.html @@ -1,4 +1,4 @@ {% if (doc.stock_uom and not doc.is_print_hide("stock_uom")) or (doc.uom and not doc.is_print_hide("uom")) -%} -{{ _(doc.uom) or _(doc.stock_uom) }} +{{ _(doc.uom or doc.stock_uom) }} {%- endif %} {{ doc.get_formatted("qty", doc) }}