From ca3e7152d6bf838b72106be64a4e56275eca1bb6 Mon Sep 17 00:00:00 2001 From: saurabh Date: Fri, 19 Feb 2016 11:09:31 +0530 Subject: [PATCH] removed add fetch method --- erpnext/buying/doctype/purchase_common/purchase_common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/buying/doctype/purchase_common/purchase_common.js b/erpnext/buying/doctype/purchase_common/purchase_common.js index 4c239b33c2..c856e28edd 100644 --- a/erpnext/buying/doctype/purchase_common/purchase_common.js +++ b/erpnext/buying/doctype/purchase_common/purchase_common.js @@ -18,8 +18,7 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({ setup_queries: function() { var me = this; - - this.frm.add_fetch('supplier', 'language', 'print_language'); + if(this.frm.fields_dict.buying_price_list) { this.frm.set_query("buying_price_list", function() { return{