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{