From 440c94ff9e6037763c40792eafa153ed3fe54d2d Mon Sep 17 00:00:00 2001 From: Sumit Jain Date: Mon, 27 Apr 2026 10:43:04 +0530 Subject: [PATCH] feat(customize_form): add 'in_import_template' field option to customize form and field --- frappe/custom/doctype/customize_form/customize_form.py | 1 + .../customize_form_field/customize_form_field.json | 10 +++++++++- .../customize_form_field/customize_form_field.py | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/frappe/custom/doctype/customize_form/customize_form.py b/frappe/custom/doctype/customize_form/customize_form.py index 472a80c6a7..d1c9e5c969 100644 --- a/frappe/custom/doctype/customize_form/customize_form.py +++ b/frappe/custom/doctype/customize_form/customize_form.py @@ -787,6 +787,7 @@ docfield_properties = { "print_hide": "Check", "print_hide_if_no_value": "Check", "report_hide": "Check", + "in_import_template": "Check", "allow_on_submit": "Check", "translatable": "Check", "mandatory_depends_on": "Data", diff --git a/frappe/custom/doctype/customize_form_field/customize_form_field.json b/frappe/custom/doctype/customize_form_field/customize_form_field.json index 3e658738bf..89a3d14f95 100644 --- a/frappe/custom/doctype/customize_form_field/customize_form_field.json +++ b/frappe/custom/doctype/customize_form_field/customize_form_field.json @@ -48,6 +48,7 @@ "ignore_user_permissions", "allow_on_submit", "report_hide", + "in_import_template", "remember_last_selected_value", "hide_border", "ignore_xss_filter", @@ -293,6 +294,13 @@ "oldfieldname": "report_hide", "oldfieldtype": "Check" }, + { + "default": "0", + "description": "Enable this option to include the field in the data import template", + "fieldname": "in_import_template", + "fieldtype": "Check", + "label": "Include in Import Template" + }, { "default": "0", "depends_on": "eval:(doc.fieldtype == 'Link')", @@ -523,7 +531,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2026-03-22 10:36:12.968197", + "modified": "2026-04-27 12:00:00.000000", "modified_by": "Administrator", "module": "Custom", "name": "Customize Form Field", diff --git a/frappe/custom/doctype/customize_form_field/customize_form_field.py b/frappe/custom/doctype/customize_form_field/customize_form_field.py index bd4d46ffe7..dd103969e4 100644 --- a/frappe/custom/doctype/customize_form_field/customize_form_field.py +++ b/frappe/custom/doctype/customize_form_field/customize_form_field.py @@ -81,6 +81,7 @@ class CustomizeFormField(Document): ignore_xss_filter: DF.Check in_filter: DF.Check in_global_search: DF.Check + in_import_template: DF.Check in_list_view: DF.Check in_preview: DF.Check in_standard_filter: DF.Check