fix: remove allow_on_submit for pick list items

(cherry picked from commit da716b824f)
This commit is contained in:
Kavin
2025-10-03 18:43:10 +05:30
committed by Mergify
parent fe0739aadf
commit 4ccdedeb12
2 changed files with 1 additions and 3 deletions

View File

@@ -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"), () =>

View File

@@ -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",