diff --git a/news/SUP-51505.feature b/news/SUP-51505.feature new file mode 100644 index 000000000..ae65c3741 --- /dev/null +++ b/news/SUP-51505.feature @@ -0,0 +1,2 @@ +Remove bound_licences filter for all licences except RoadDecree and Tickets +[WBoudabous] \ No newline at end of file diff --git a/src/Products/urban/content/licence/CODT_BaseBuildLicence.py b/src/Products/urban/content/licence/CODT_BaseBuildLicence.py index 2c0b31eac..e6b6f911a 100644 --- a/src/Products/urban/content/licence/CODT_BaseBuildLicence.py +++ b/src/Products/urban/content/licence/CODT_BaseBuildLicence.py @@ -547,18 +547,7 @@ restrict_browsing_to_startup_directory=True, label=_("urban_label_bound_licences", default="Bound licences"), ), - allowed_types=[ - t - for t in URBAN_TYPES - if t - not in [ - "Inspection", - "Ticket", - "ProjectMeeting", - "CODT_UrbanCertificateOne", - "UrbanCertificateOne", - ] - ], + allowed_types=[t for t in URBAN_TYPES], schemata="urban_description", multiValued=True, relationship="bound_licences", diff --git a/src/Products/urban/content/licence/Inspection.py b/src/Products/urban/content/licence/Inspection.py index b25672964..27247c462 100644 --- a/src/Products/urban/content/licence/Inspection.py +++ b/src/Products/urban/content/licence/Inspection.py @@ -162,19 +162,7 @@ restrict_browsing_to_startup_directory=True, label=_("urban_label_bound_licences", default="Bound licences"), ), - allowed_types=[ - t - for t in URBAN_TYPES - if t - not in [ - "Inspection", - "Ticket", - "ProjectMeeting", - "PatrimonyCertificate", - "CODT_UrbanCertificateOne", - "UrbanCertificateOne", - ] - ], + allowed_types=[t for t in URBAN_TYPES], schemata="urban_description", multiValued=True, relationship="bound_licences", diff --git a/src/Products/urban/content/licence/PatrimonyCertificate.py b/src/Products/urban/content/licence/PatrimonyCertificate.py index b9ed5055e..0f3ad3093 100644 --- a/src/Products/urban/content/licence/PatrimonyCertificate.py +++ b/src/Products/urban/content/licence/PatrimonyCertificate.py @@ -149,18 +149,7 @@ restrict_browsing_to_startup_directory=True, label=_("urban_label_bound_licences", default="Bound licences"), ), - allowed_types=[ - t - for t in URBAN_TYPES - if t - not in [ - "Inspection", - "Ticket", - "ProjectMeeting", - "CODT_UrbanCertificateOne", - "UrbanCertificateOne", - ] - ], + allowed_types=[t for t in URBAN_TYPES], schemata="urban_description", multiValued=True, relationship="bound_licences",