frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
17.41k stars 6.65k forks source link

dialog not refreshed in the "Serial No And Batch Selector" dialog when using scan to add new serial #41535

Open ZhangLianK opened 1 month ago

ZhangLianK commented 1 month ago

Information about bug

when using scan in the "Serial No And Batch Selector", the scanned serial is added but the screen is not refreshed. when execute cur_dialog.refresh() in the js console, the scanned serial displayed.

Module

stock

Version

ERPNext 15

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

No response

ZhangLianK commented 1 month ago

update_serial_batch_no() {

frappe.call({ method: "erpnext.stock.doctype.serial_and_batch_bundle.serial_and_batch_bundle.get_batch_no_from_serial_no", args: { serial_no: scan_serial_no, }, callback: (r) => { if (r.message) { this.dialog.fields_dict.entries.df.data.push({ serial_no: scan_serial_no, batch_no: r.message, });

                        this.dialog.fields_dict.scan_serial_no.set_value("");
                    }
                },
            });
ZhangLianK commented 1 month ago

@rohitwaghchaure could you please have a look on this issue? I think in the callback function should have a refresh.

nabinhait commented 2 weeks ago

Can't replicate in latest version. Can you make a video and attach it here?