Merge pull request #4982 from rohitwaghchaure/support_week_14_03-1

[fixes]draft BOM showing in Material Request
This commit is contained in:
Nabin Hait 2016-03-15 11:36:15 +05:30
commit 25716652b7

View File

@ -105,7 +105,9 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
title: __("Get Items from BOM"),
fields: [
{"fieldname":"bom", "fieldtype":"Link", "label":__("BOM"),
options:"BOM", reqd: 1},
options:"BOM", reqd: 1, get_query: function(){
return {filters: { docstatus:1 }}
}},
{"fieldname":"warehouse", "fieldtype":"Link", "label":__("Warehouse"),
options:"Warehouse", reqd: 1, label:"For Warehouse"},
{"fieldname":"fetch_exploded", "fieldtype":"Check",