mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
fix: do not allow to add rows manually
This commit is contained in:
@@ -2,6 +2,7 @@ frappe.ui.form.on("Sales Forecast", {
|
|||||||
refresh(frm) {
|
refresh(frm) {
|
||||||
frm.trigger("set_query_filters");
|
frm.trigger("set_query_filters");
|
||||||
frm.trigger("set_custom_buttons");
|
frm.trigger("set_custom_buttons");
|
||||||
|
frm.set_df_property("items", "cannot_add_rows", true);
|
||||||
},
|
},
|
||||||
|
|
||||||
set_query_filters(frm) {
|
set_query_filters(frm) {
|
||||||
|
|||||||
@@ -90,7 +90,6 @@
|
|||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_bulk_edit": 1,
|
|
||||||
"fieldname": "items",
|
"fieldname": "items",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"label": "Items",
|
"label": "Items",
|
||||||
@@ -167,7 +166,7 @@
|
|||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2025-09-21 13:24:34.720794",
|
"modified": "2025-11-13 16:33:49.682684",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
"name": "Sales Forecast",
|
"name": "Sales Forecast",
|
||||||
|
|||||||
Reference in New Issue
Block a user