diff --git a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.js b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.js index 52d6eea3..63a42287 100644 --- a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.js +++ b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.js @@ -24,7 +24,7 @@ frappe.ui.form.on("Catch Log Entry", { year: frm.doc.year, }); }); - + frm.change_custom_button_type(__("New Catch Log Entry"), null, "primary"); frm.add_custom_button(__("Delete"), () => frm.savetrash()); } }, diff --git a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json index 08f849b0..48521361 100644 --- a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json +++ b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json @@ -32,7 +32,8 @@ "label": "Water Body", "options": "Water Body", "reqd": 1, - "search_index": 1 + "search_index": 1, + "set_only_once": 1 }, { "fieldname": "year", @@ -147,7 +148,7 @@ ], "grid_page_length": 50, "links": [], - "modified": "2026-03-18 22:15:30.654778", + "modified": "2026-05-06 10:55:03.010668", "modified_by": "Administrator", "module": "Water Body Management", "name": "Catch Log Entry",