Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
1972 Ansichten

Hi,

I want the group "Project / Users" to be able to create new project stages. Even if by default both groups have the same permissions, it seems that the "+ Stage" button does not appear in the project Kanban view for "Project / Users". 

How could I achieve this (permissions to create + button visibility)?

I'm using Odoo 16, but the behaviour is the same in v17.

Thanks in advance!




Avatar
Verwerfen
Beste Antwort

Hello Juan 

Actually the +stage only appears for the group Project / Administrator

You can change this by customization
as you can see  in the following js code

async onWillStart() {
if (this.props.list.isGroupedByStage) { // no need to check it if not grouped by stage
this.isProjectManager = await this.userService.hasGroup('project.group_project_manager');
}
}

in the line this.isProjectManager = await this.userService.hasGroup('project.group_project_manager');

odoo checks for the group Project / Administrator by id

So you can customize this code to search for Project / User



Another approach(which i don't recommend because it might give some unseen privileges) 

  1. Duplicate the Project / Administrator Group and name it Project / Administrator Privileges
  2. Remove all Access Rights from the Original Project / Administrator group
  3. Assign the original Project / Administrator group to the users you want to create the stages
  4. Assign the Project / Administrator Privileges group to the Project Administrators
Avatar
Verwerfen
Autor

Thanks a lot Emad!

I Preferer for 2nd approach

Beste Antwort

what file is this found in?

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Okt. 24
5781
3
Sept. 19
7807
1
März 17
4835
0
Juli 23
3018
1
Juni 23
3401