mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 17:45:04 +00:00
fix: download materials request plan in PP
(cherry picked from commit f4acdd9636)
This commit is contained in:
committed by
Mergify
parent
3e4c568ddc
commit
ef2a6c788e
@@ -400,13 +400,17 @@ frappe.ui.form.on("Production Plan", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
download_materials_required(frm) {
|
download_materials_required(frm) {
|
||||||
|
const warehouses_data = [{
|
||||||
|
warehouse: frm.doc.for_warehouse
|
||||||
|
}];
|
||||||
const fields = [
|
const fields = [
|
||||||
{
|
{
|
||||||
fieldname: "warehouses",
|
fieldname: "warehouses",
|
||||||
fieldtype: "Table MultiSelect",
|
fieldtype: "Table MultiSelect",
|
||||||
label: __("Warehouses"),
|
label: __("Warehouses"),
|
||||||
default: frm.doc.from_warehouse,
|
default: warehouses_data,
|
||||||
options: "Production Plan Material Request Warehouse",
|
options: "Production Plan Material Request Warehouse",
|
||||||
|
reqd: 1,
|
||||||
get_query: function () {
|
get_query: function () {
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
|
|||||||
Reference in New Issue
Block a user