Skip to content

Commit

Permalink
fix: checkbox triggers get_items and sub_assembly buttons (frappe#28558)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahjacob authored and conncampbell committed Jan 9, 2022
1 parent 3b8dd5e commit 18e3af9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ frappe.ui.form.on('Production Plan', {
method: "get_items",
freeze: true,
doc: frm.doc,
callback: function() {
frm.refresh_field("po_items");
if (frm.doc.sub_assembly_items.length > 0) {
frm.trigger("get_sub_assembly_items");
}
}
});
},

Expand Down

0 comments on commit 18e3af9

Please sign in to comment.