From 5265aa43e44249bbfdbc5117d26262d48e955af8 Mon Sep 17 00:00:00 2001 From: saurabh Date: Wed, 17 Feb 2016 19:10:26 +0530 Subject: [PATCH] added add_fetch method --- erpnext/buying/doctype/purchase_common/purchase_common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/buying/doctype/purchase_common/purchase_common.js b/erpnext/buying/doctype/purchase_common/purchase_common.js index c856e28edd1..4c239b33c24 100644 --- a/erpnext/buying/doctype/purchase_common/purchase_common.js +++ b/erpnext/buying/doctype/purchase_common/purchase_common.js @@ -18,7 +18,8 @@ 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{