From 5eefff13a145f0d5ea5252137637cd0a3d636feb Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 7 Dec 2015 10:44:56 +0530 Subject: [PATCH] [fix] get_incoming_rate function whitelisted --- erpnext/stock/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index f89561c599..0d95c58337 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py @@ -88,6 +88,7 @@ def update_bin(args, allow_negative_stock=False, via_landed_cost_voucher=False): else: frappe.msgprint(_("Item {0} ignored since it is not a stock item").format(args.get("item_code"))) +@frappe.whitelist() def get_incoming_rate(args): """Get Incoming Rate based on valuation method""" from erpnext.stock.stock_ledger import get_previous_sle