mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-01 03:12:39 +02: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");
|
frm.trigger("add_get_items_button");
|
||||||
if (frm.doc.docstatus === 1) {
|
if (frm.doc.docstatus === 1) {
|
||||||
const status_completed = frm.doc.status === "Completed";
|
const status_completed = frm.doc.status === "Completed";
|
||||||
frm.set_df_property("locations", "allow_on_submit", status_completed ? 0 : 1);
|
|
||||||
|
|
||||||
if (!status_completed) {
|
if (!status_completed) {
|
||||||
frm.add_custom_button(__("Update Current Stock"), () =>
|
frm.add_custom_button(__("Update Current Stock"), () =>
|
||||||
|
|||||||
@@ -77,7 +77,6 @@
|
|||||||
"options": "Work Order"
|
"options": "Work Order"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_on_submit": 1,
|
|
||||||
"fieldname": "locations",
|
"fieldname": "locations",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"label": "Item Locations",
|
"label": "Item Locations",
|
||||||
@@ -247,7 +246,7 @@
|
|||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2025-07-23 08:34:32.099673",
|
"modified": "2025-10-03 18:36:52.282355",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Pick List",
|
"name": "Pick List",
|
||||||
|
|||||||
Reference in New Issue
Block a user