commit | 73bfd59846de9a65b5d95f6204d4301f9e22e80b | [log] [tgz] |
---|---|---|
author | Noah Jacob <noahjacobkurian@gmail.com> | Fri Nov 26 11:53:35 2021 +0530 |
committer | GitHub <noreply@github.com> | Fri Nov 26 11:53:35 2021 +0530 |
tree | cafa810e66e8887b32aa552f8e5f9f54a9795b8c | |
parent | 87f2dcfb597e45d9a7f970fbe4a644e1e70bca92 [diff] |
fix: checkbox triggers get_items and sub_assembly buttons (#28558)
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.js b/erpnext/manufacturing/doctype/production_plan/production_plan.js index b171086..0babf87 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.js +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.js
@@ -238,6 +238,12 @@ 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"); + } + } }); },