Skip to content

Commit

Permalink
fix: read only filters in multidialog fields (backport #43503) (#43513)
Browse files Browse the repository at this point in the history
fix: read only filters in multidialog fields (#43503)

(cherry picked from commit 13eb3c5)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Oct 7, 2024
1 parent 4fa5131 commit d69a974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/public/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,7 @@ erpnext.utils.map_current_doc = function (opts) {
target: opts.target,
date_field: opts.date_field || undefined,
setters: opts.setters,
read_only_setters: opts.read_only_setters,
data_fields: data_fields,
get_query: opts.get_query,
add_filters_group: 1,
Expand Down
2 changes: 2 additions & 0 deletions erpnext/stock/doctype/stock_entry/stock_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,11 @@ frappe.ui.form.on("Stock Entry", {
source_doctype: "Stock Entry",
target: frm,
date_field: "posting_date",
read_only_setters: ["stock_entry_type", "purpose", "add_to_transit"],
setters: {
stock_entry_type: "Material Transfer",
purpose: "Material Transfer",
add_to_transit: 1,
},
get_query_filters: {
docstatus: 1,
Expand Down

0 comments on commit d69a974

Please sign in to comment.