From dd87bcfda08969da7a35db9e2c0772abb2bc8d31 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 4 Nov 2020 13:26:03 +0530 Subject: [PATCH] fix: on save sequence id column override with workstation --- erpnext/manufacturing/doctype/routing/routing.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/erpnext/manufacturing/doctype/routing/routing.js b/erpnext/manufacturing/doctype/routing/routing.js index c5af833d7f..9b1a8ca670 100644 --- a/erpnext/manufacturing/doctype/routing/routing.js +++ b/erpnext/manufacturing/doctype/routing/routing.js @@ -2,7 +2,15 @@ // For license information, please see license.txt frappe.ui.form.on('Routing', { + refresh: function(frm) { + frm.trigger("display_sequence_id_column"); + }, + onload: function(frm) { + frm.trigger("display_sequence_id_column"); + }, + + display_sequence_id_column: function(frm) { frappe.meta.get_docfield("BOM Operation", "sequence_id", frm.doc.name).in_list_view = true;