mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
[fixes]draft BOM showing in Material Request
This commit is contained in:
@@ -105,7 +105,9 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
|
|||||||
title: __("Get Items from BOM"),
|
title: __("Get Items from BOM"),
|
||||||
fields: [
|
fields: [
|
||||||
{"fieldname":"bom", "fieldtype":"Link", "label":__("BOM"),
|
{"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"),
|
{"fieldname":"warehouse", "fieldtype":"Link", "label":__("Warehouse"),
|
||||||
options:"Warehouse", reqd: 1, label:"For Warehouse"},
|
options:"Warehouse", reqd: 1, label:"For Warehouse"},
|
||||||
{"fieldname":"fetch_exploded", "fieldtype":"Check",
|
{"fieldname":"fetch_exploded", "fieldtype":"Check",
|
||||||
|
|||||||
Reference in New Issue
Block a user