diff --git a/news/URB-3013.internal b/news/URB-3013.internal new file mode 100644 index 000000000..d4da62432 --- /dev/null +++ b/news/URB-3013.internal @@ -0,0 +1,2 @@ +Add new dashboardTemplate +[fngaha] \ No newline at end of file diff --git a/src/Products/urban/config.py b/src/Products/urban/config.py index 5a104b77e..9ac00e63c 100755 --- a/src/Products/urban/config.py +++ b/src/Products/urban/config.py @@ -426,6 +426,11 @@ def section(self, section_name): "title": "Listing des permis", "use_objects": True, }, + { + "id": "permis-par-village.odt", + "portal_type": "DashboardPODTemplate", + "title": "Ministère - permis par village", + }, # { # 'id': 'folderlisting.odt', # 'portal_type': 'DashboardPODTemplate', diff --git a/src/Products/urban/migration/update_260.py b/src/Products/urban/migration/update_260.py index 5fda93ad2..e9b8b3799 100644 --- a/src/Products/urban/migration/update_260.py +++ b/src/Products/urban/migration/update_260.py @@ -108,3 +108,16 @@ def update_delais_vocabularies_and_activate_prorogation_field(context): to_set = ("prorogation",) config.setUsedAttributes(config.getUsedAttributes() + to_set) logger.info("upgrade step done!") + + +def update_all_urban_templates(context): + """ """ + logger = logging.getLogger( + "urban: update all urban templates" + ) + logger.info("starting upgrade steps") + portal_setup = api.portal.get_tool("portal_setup") + portal_setup.runImportStepFromProfile( + "profile-Products.urban:extra", "urban-updateAllUrbanTemplates" + ) + logger.info("upgrade step done!") diff --git a/src/Products/urban/migration/upgrades.zcml b/src/Products/urban/migration/upgrades.zcml index ae7132e5a..4dd1dc7e8 100644 --- a/src/Products/urban/migration/upgrades.zcml +++ b/src/Products/urban/migration/upgrades.zcml @@ -567,4 +567,13 @@ profile="Products.urban:default" /> + + diff --git a/src/Products/urban/profiles/default/metadata.xml b/src/Products/urban/profiles/default/metadata.xml index a3526fdf7..c0a22c909 100644 --- a/src/Products/urban/profiles/default/metadata.xml +++ b/src/Products/urban/profiles/default/metadata.xml @@ -1,6 +1,6 @@ - 1141 + 1142 profile-Products.urban:preinstall diff --git a/src/Products/urban/profiles/extra/templates/permis-par-village.odt b/src/Products/urban/profiles/extra/templates/permis-par-village.odt new file mode 100644 index 000000000..c3a3161d3 Binary files /dev/null and b/src/Products/urban/profiles/extra/templates/permis-par-village.odt differ