From 66bfa23df02417a1ff2491b60bc7abc38cdf4131 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 14:46:50 +0200 Subject: [PATCH] fix: show fields only when their dependencies are filled in (backport #30) (#35) Co-authored-by: Markus Lobedann --- .../erpnext_germany/doctype/vat_id_check/vat_id_check.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext_germany/erpnext_germany/doctype/vat_id_check/vat_id_check.json b/erpnext_germany/erpnext_germany/doctype/vat_id_check/vat_id_check.json index af4a5d0..acd5d84 100644 --- a/erpnext_germany/erpnext_germany/doctype/vat_id_check/vat_id_check.json +++ b/erpnext_germany/erpnext_germany/doctype/vat_id_check/vat_id_check.json @@ -195,6 +195,7 @@ "in_standard_filter": 1, "label": "Party", "options": "party_type", + "read_only_depends_on": "eval: !doc.party_type", "set_only_once": 1 }, { @@ -202,6 +203,7 @@ "fieldtype": "Link", "label": "Party Address", "options": "Address", + "read_only_depends_on": "eval: !doc.party", "set_only_once": 1 }, { @@ -217,7 +219,7 @@ } ], "links": [], - "modified": "2024-01-15 19:51:41.796509", + "modified": "2024-06-11 10:14:55.846253", "modified_by": "Administrator", "module": "ERPNext Germany", "name": "VAT ID Check", @@ -274,4 +276,4 @@ "sort_order": "DESC", "states": [], "title_field": "party_vat_id" -} \ No newline at end of file +}