Merge pull request #14363 from frappe/manassolanki-patch-10
PR to check the current state of Travis
diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py
index 59f43a6..3b1b4f3 100644
--- a/erpnext/stock/get_item_details.py
+++ b/erpnext/stock/get_item_details.py
@@ -408,6 +408,10 @@
get_field_precision(meta.get_field("conversion_rate"),
frappe._dict({"fields": args})))
+ if (not args.plc_conversion_rate
+ and args.price_list_currency==frappe.db.get_value("Price List", args.price_list, "currency")):
+ args.plc_conversion_rate = 1.0
+
# validate price list currency conversion rate
if not args.get("price_list_currency"):
throw(_("Price List Currency not selected"))