-
-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] [16.0] project_administrator_restricted_visibility: Restricted Project Manager always can manage its own projects #1393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is a good idea, as they should only create projects with the corresponding allowed permissions. Adding a wildcard is not the option.
But it's not a wildcard, default visibility should be freely updated at anyone what the customer wants without an impact on any role. When the project is created, the first that Odoo does is to put the creation of the project on the followers (and then the other rules are applied). |
Yes, but it should be updated by a manager, not a restricted visibility one. |
This rule is better because it's more UX-consistent than the current one. It can be applied to all CRUD operations, so it will make sure that a project you created you can read it later. Otherwise, the restricted admin could create a project but then never read it, resulting in a false sense of it not having been created. |
bf5fa7a
to
a03329a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much better now. I still found one issue though.
...dministrator_restricted_visibility/tests/test_project_administrator_restricted_visibility.py
Outdated
Show resolved
Hide resolved
… Manager can manage its own projects
a03329a
to
f2c5014
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
@pedrobaeza I'm going to merge after all comments solved, OK?
Please wait till my confirmation, as I want to make sure this doesn't provoke any problem in our use cases. |
@victoralmau can you please check the impact in our customers? |
Reviewing the whole thread I think the same as pedro, I don't like this solution because without this module (standard) this is a problem that already happens and would be solved in another way (create it with other visibility and changing it later for example) and therefore, you are changing the behavior taking advantage of this permission. Having clarified the above, I BELIEVE that it will not have any side effect and I will not oppose it either. |
This PR has the |
I hope this video lets you understand better why we need this fix and why we think it fits with this modules' users expectations: Fixing.Project.Visibility.Issues.in.Pull.Request.mp4
So, do you agree to merge? Thanks. |
Hello @victoralmau ! Could you please kindly review the video of @yajo after you comment? 😄 Thank you! ❤️ and Happy new year! 🥳 |
Hello again, Thanks for the explanation video, I understand (and understood) what was happening, and that is why I do not oppose this change and I think it will not have any side effect. Currently it would be possible to create a project with the visibility “Invited portal users and all internal users”, become a follower of that project and then change the visibility to “Invited internal users” (indeed it could not be done currently with the Restricted Administrator permission because it is intentional). Best regards. |
So, taking in consideration the @victoralmau response, @pedrobaeza can you approve this PR? |
/ocabot merge patch |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at b5c5ad5. Thanks a lot for contributing to OCA. ❤️ |
If you change default visibility to "Invited internal users", Project Administrator with restricted access cannot create projects.
This fix adds a new rule to allow them to create projects always (only create).
Once the project is created, the creator of the projects adds automatically to followers and other rules are applied.
MT-7868 @moduon @rafaelbn @Gelojr @fcvalgar @yajo @ernestotejeda please review if you want 😄