mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 23:54:59 +00:00
fix: remove allow_on_submit for pick list items
(cherry picked from commit da716b824f)
This commit is contained in:
@@ -140,7 +140,6 @@ frappe.ui.form.on("Pick List", {
|
||||
frm.trigger("add_get_items_button");
|
||||
if (frm.doc.docstatus === 1) {
|
||||
const status_completed = frm.doc.status === "Completed";
|
||||
frm.set_df_property("locations", "allow_on_submit", status_completed ? 0 : 1);
|
||||
|
||||
if (!status_completed) {
|
||||
frm.add_custom_button(__("Update Current Stock"), () =>
|
||||
|
||||
@@ -77,7 +77,6 @@
|
||||
"options": "Work Order"
|
||||
},
|
||||
{
|
||||
"allow_on_submit": 1,
|
||||
"fieldname": "locations",
|
||||
"fieldtype": "Table",
|
||||
"label": "Item Locations",
|
||||
@@ -247,7 +246,7 @@
|
||||
],
|
||||
"is_submittable": 1,
|
||||
"links": [],
|
||||
"modified": "2025-07-23 08:34:32.099673",
|
||||
"modified": "2025-10-03 18:36:52.282355",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Pick List",
|
||||
|
||||
Reference in New Issue
Block a user