Skip to content

Commit

Permalink
Merge pull request #41867 from Nihantra-Patel/download_materials_requ…
Browse files Browse the repository at this point in the history
…ired_v15

fix: download materials request plan in PP
  • Loading branch information
rohitwaghchaure authored Jun 12, 2024
2 parents 7ee2a19 + a1c4e0e commit 9f3b1ce
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,19 @@ 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: {
Expand Down

0 comments on commit 9f3b1ce

Please sign in to comment.