fix: download materials request plan in PP

(cherry picked from commit f4acdd9636)
This commit is contained in:
Nihantra C. Patel
2024-06-12 12:26:40 +05:30
committed by Mergify
parent 3e4c568ddc
commit ef2a6c788e

View File

@@ -400,13 +400,17 @@ frappe.ui.form.on("Production Plan", {
},
download_materials_required(frm) {
const warehouses_data = [{
warehouse: frm.doc.for_warehouse
}];
const fields = [
{
fieldname: "warehouses",
fieldtype: "Table MultiSelect",
label: __("Warehouses"),
default: frm.doc.from_warehouse,
default: warehouses_data,
options: "Production Plan Material Request Warehouse",
reqd: 1,
get_query: function () {
return {
filters: {