From 8ebe581dead35b841c17130cb63c00e51aab8658 Mon Sep 17 00:00:00 2001 From: Wiemboudabous Date: Fri, 17 Apr 2026 10:44:04 +0200 Subject: [PATCH 1/2] toggle field visibility --- docs/CHANGES.rst | 4 ++++ src/Products/urban/content/licence/BaseBuildLicence.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 624d563b4..ee9e8d4b9 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -10,6 +10,10 @@ Changelog 2.9.17 (2026-04-10) ------------------- +New features: + +-Add option to show or hide the representativeContacts field +[WBoudabous] (SUP-51436) Bug fixes: diff --git a/src/Products/urban/content/licence/BaseBuildLicence.py b/src/Products/urban/content/licence/BaseBuildLicence.py index 0a997b477..7c003b3d6 100644 --- a/src/Products/urban/content/licence/BaseBuildLicence.py +++ b/src/Products/urban/content/licence/BaseBuildLicence.py @@ -68,6 +68,7 @@ "availableParkings", "missingParkings", "parkingDetails", + "representativeContacts", ] slave_fields_habitation = ( @@ -515,6 +516,7 @@ ), popup_name="contact_reference_popup", ), + optional=True, schemata="urban_description", multiValued=1, relationship="basebuildlicenceRepresentativeContacts", From cde7b21ad95e5e9f824f1ffdb333e8831a0753d4 Mon Sep 17 00:00:00 2001 From: Wiemboudabous Date: Fri, 17 Apr 2026 11:08:50 +0200 Subject: [PATCH 2/2] updates --- docs/CHANGES.rst | 4 ---- news/SUP-51436.feature | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 news/SUP-51436.feature diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index ee9e8d4b9..624d563b4 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -10,10 +10,6 @@ Changelog 2.9.17 (2026-04-10) ------------------- -New features: - --Add option to show or hide the representativeContacts field -[WBoudabous] (SUP-51436) Bug fixes: diff --git a/news/SUP-51436.feature b/news/SUP-51436.feature new file mode 100644 index 000000000..a1f60975d --- /dev/null +++ b/news/SUP-51436.feature @@ -0,0 +1,2 @@ +Add option to show or hide the representativeContacts field +[WBoudabous] \ No newline at end of file