fix: do not allow to add rows manually

This commit is contained in:
Rohit Waghchaure
2025-11-13 16:34:31 +05:30
parent be826dba3b
commit 019f8103f3
2 changed files with 2 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ frappe.ui.form.on("Sales Forecast", {
refresh(frm) {
frm.trigger("set_query_filters");
frm.trigger("set_custom_buttons");
frm.set_df_property("items", "cannot_add_rows", true);
},
set_query_filters(frm) {

View File

@@ -90,7 +90,6 @@
"fieldtype": "Section Break"
},
{
"allow_bulk_edit": 1,
"fieldname": "items",
"fieldtype": "Table",
"label": "Items",
@@ -167,7 +166,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2025-09-21 13:24:34.720794",
"modified": "2025-11-13 16:33:49.682684",
"modified_by": "Administrator",
"module": "Manufacturing",
"name": "Sales Forecast",