From 3504a2342ec89a737df25b3ed53f4360b894e083 Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Wed, 6 Jun 2018 12:46:06 +0530 Subject: [PATCH] PR to check the current state of Travis --- erpnext/stock/get_item_details.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 59f43a6426..3b1b4f3e18 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -408,6 +408,10 @@ def validate_conversion_rate(args, meta): 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"))