From c4bcd77a8581374a984aa1b39dac7a4686f7ad3b Mon Sep 17 00:00:00 2001 From: Nils Coenen Date: Sun, 13 Aug 2023 13:52:45 +0200 Subject: [PATCH] [IMP] improved views concerning categories & tags - added string "Partner-Tag" if the category refers to Partner-tags instead of worker category (fsm.category) - added groups-access to tag-ids used in views, to only show tags if "manage tags" (fsm.tags) is enabled - added groups-access to category_ids used in views, to only show category if "manage categories" (fsm.category) is enabled --- fieldservice/readme/CONTRIBUTORS.rst | 1 + fieldservice/views/fsm_location.xml | 4 +++- fieldservice/views/fsm_order.xml | 17 +++++++++++------ fieldservice/views/fsm_person.xml | 4 +++- fieldservice/views/fsm_template.xml | 8 ++++++++ 5 files changed, 26 insertions(+), 8 deletions(-) diff --git a/fieldservice/readme/CONTRIBUTORS.rst b/fieldservice/readme/CONTRIBUTORS.rst index 72de854016..c6d19acc8a 100644 --- a/fieldservice/readme/CONTRIBUTORS.rst +++ b/fieldservice/readme/CONTRIBUTORS.rst @@ -14,3 +14,4 @@ * `Tecnativa `_: * Víctor Martínez +* Nils Coenen diff --git a/fieldservice/views/fsm_location.xml b/fieldservice/views/fsm_location.xml index 29bc40ba68..802d5a913d 100644 --- a/fieldservice/views/fsm_location.xml +++ b/fieldservice/views/fsm_location.xml @@ -9,6 +9,7 @@ @@ -154,6 +155,7 @@ @@ -299,7 +301,7 @@ - + - + @@ -110,6 +111,7 @@ name="category_ids" widget="many2many_tags" options="{'color_field': 'color'}" + groups="fieldservice.group_fsm_category" /> @@ -130,13 +132,15 @@ > + + - - + @@ -296,6 +300,7 @@ diff --git a/fieldservice/views/fsm_person.xml b/fieldservice/views/fsm_person.xml index efac3ddef3..052d226996 100644 --- a/fieldservice/views/fsm_person.xml +++ b/fieldservice/views/fsm_person.xml @@ -12,6 +12,7 @@ name="category_ids" widget="many2many_tags" options="{'color_field': 'color'}" + groups="fieldservice.group_fsm_category" /> @@ -23,7 +24,7 @@ - + @@ -100,6 +101,7 @@ name="category_ids" widget="many2many_tags" options="{'color_field': 'color'}" + groups="fieldservice.group_fsm_category" />