Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Project
Entity: project.project
Compute Method: _compute_access_instruction_message
| Inputs | Method | Outputs |
|---|---|---|
|
for project in self:
if project.privacy_visibility == 'portal':
- project.access_instruction_message = _('Grant portal users access to your project by adding them as followers (the tasks of the project are not included). To grant access to tasks to a portal user, add them as followers for these tasks.')
+ project.access_instruction_message = self.env._('All internal users have access to the project. Invite portal users as collaborators to give them access. They can also access tasks they follow.')
elif project.privacy_visibility == 'followers':
- project.access_instruction_message = _('Grant employees access to your project or tasks by adding them as followers. Employees automatically get access to the tasks they are assigned to.')
+ project.access_instruction_message = self.env._('Add internal users as team members to give them access to the project. They can also access tasks they follow.')
+ elif project.privacy_visibility == 'invited_users':
+ project.access_instruction_message = self.env._("Add internal users as team members and invite portal users as collaborators to give them access to the project. They can also access tasks they follow.")
else:
project.access_instruction_message = ''
|
|
