From 8d6960a706d6f6957446d0f82a9c8766bccea296 Mon Sep 17 00:00:00 2001 From: Vincent Larcin Date: Wed, 15 Jun 2022 11:55:03 +0000 Subject: [PATCH] [FIX] project: fix project privacy_visibility tooltip The project privacy_visibility tooltip doesn't reflect the actual behavior for the "Invited portal users and all internal users" selection. This commit rephrases the tooltip of that field in order to correctly match its behavior. It also slightly changes the name of the options to match the new tooltip. Task-2871771 closes odoo/odoo#93911 X-original-commit: 9ef7030e3346eda267bc27b47a8a168acdc4a7b9 Signed-off-by: Laurent Stukkens (ltu) --- addons/project/i18n/project.pot | 19 ++++++++++++++----- addons/project/models/project.py | 17 +++++++++++------ 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/addons/project/i18n/project.pot b/addons/project/i18n/project.pot index e126c69bb13..5071981ebb7 100644 --- a/addons/project/i18n/project.pot +++ b/addons/project/i18n/project.pot @@ -1649,11 +1649,20 @@ msgstr "" #: model:ir.model.fields,help:project.field_project_project__privacy_visibility #: model:ir.model.fields,help:project.field_project_task__project_privacy_visibility msgid "" -"Defines the visibility of the tasks of the project:\n" -"- Invited internal users: internal users may only see the followed project and tasks.\n" -"- All internal users: internal users may see all project and tasks.\n" -"- Invited portal users and all internal users: internal users may see everything. Invited portal users may see project and tasks followed by.\n" -" them or by someone of their company." +"People to whom this project and its tasks will be visible.\n" +"\n" +"- Invited internal users: when following a project, internal users will get access to all of its tasks without distinction. Otherwise, they will only get access to the specific tasks they are following.\n" +" A user with the project > administrator access right level can still access this project and its tasks, even if they are not explicitly part of the followers.\n" +"\n" +"- All internal users: all internal users can access the project and all of its tasks without distinction.\n" +"\n" +"- Invited portal users and all internal users: all internal users can access the project and all of its tasks without distinction.\n" +"When following a project, portal users will get access to all of its tasks without distinction. Otherwise, they will only get access to the specific tasks they are following.\n" +"\n" +"When a project is shared in read-only, the portal user is redirected to their portal. They can view the tasks, but not edit them.\n" +"When a project is shared in edit, the portal user is redirected to the kanban and list views of the tasks. They can modify a selected number of fields on the tasks.\n" +"\n" +"In any case, an internal user with no project access rights can still access a task, provided that they are given the corresponding URL (and that they are part of the followers if the project is private)." msgstr "" #. module: project diff --git a/addons/project/models/project.py b/addons/project/models/project.py index a227c6a3bb3..9b5335a8000 100644 --- a/addons/project/models/project.py +++ b/addons/project/models/project.py @@ -314,12 +314,17 @@ class Project(models.Model): ], string='Visibility', required=True, default='portal', - help="Defines the visibility of the tasks of the project:\n" - "- Invited internal users: internal users may only see the followed project and tasks.\n" - "- All internal users: internal users may see all project and tasks.\n" - "- Invited portal users and all internal users: internal users may see everything." - " Invited portal users may see project and tasks followed by.\n" - " them or by someone of their company.") + help="People to whom this project and its tasks will be visible.\n\n" + "- Invited internal users: when following a project, internal users will get access to all of its tasks without distinction. " + "Otherwise, they will only get access to the specific tasks they are following.\n " + "A user with the project > administrator access right level can still access this project and its tasks, even if they are not explicitly part of the followers.\n\n" + "- All internal users: all internal users can access the project and all of its tasks without distinction.\n\n" + "- Invited portal users and all internal users: all internal users can access the project and all of its tasks without distinction.\n" + "When following a project, portal users will get access to all of its tasks without distinction. Otherwise, they will only get access to the specific tasks they are following.\n\n" + "When a project is shared in read-only, the portal user is redirected to their portal. They can view the tasks, but not edit them.\n" + "When a project is shared in edit, the portal user is redirected to the kanban and list views of the tasks. They can modify a selected number of fields on the tasks.\n\n" + "In any case, an internal user with no project access rights can still access a task, " + "provided that they are given the corresponding URL (and that they are part of the followers if the project is private).") doc_count = fields.Integer(compute='_compute_attached_docs_count', string="Number of documents attached") date_start = fields.Date(string='Start Date') date = fields.Date(string='Expiration Date', index=True, tracking=True)