From 0b665ac79142235caaaa9cc612d4f4f538b2c10b Mon Sep 17 00:00:00 2001 From: mbauskar Date: Tue, 11 Apr 2017 02:49:24 -0400 Subject: [PATCH] [minor] don't throw error for buying transactions if price list is not selected --- erpnext/stock/get_item_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 9b4559e684..3ada10ba6b 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -270,7 +270,7 @@ def validate_price_list(args): if not frappe.db.get_value("Price List", {"name": args.price_list, args.transaction_type: 1, "enabled": 1}): throw(_("Price List {0} is disabled or does not exist").format(args.price_list)) - else: + elif not args.get("supplier"): throw(_("Price List not selected")) def validate_conversion_rate(args, meta):