mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-20 01:55:01 +00:00
Merge pull request #41870 from frappe/mergify/bp/version-15-hotfix/pr-41867
fix: download materials request plan in PP (backport #41867)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user