fix: auto refresh serial and batch bundle field (#36943)
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index ac5735b..80d7b79 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -702,7 +702,13 @@
}
on_submit() {
- refresh_field("items");
+ this.refresh_serial_batch_bundle_field();
+ }
+
+ refresh_serial_batch_bundle_field() {
+ frappe.route_hooks.after_submit = (frm_obj) => {
+ frm_obj.reload_doc();
+ }
}
update_qty(cdt, cdn) {