-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[14.0][FIX] web_ir_action_act_*: add/fix access rights #2466
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
Conversation
@@ -0,0 +1,2 @@ | |||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | |||
crud_ir_actions_act_view_reload, 8000 access_ir_actions_act_wiew_reload,model_ir_actions_act_view_reload,,1,1,1,1 |
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.
Does the user need write, delete and create rights?
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 copied https://github.com/OCA/web/blob/14.0/web_ir_actions_act_multi/security/ir.model.access.csv
and https://github.com/OCA/web/blob/14.0/web_ir_actions_act_window_message/security/ir.model.access.csv
Happy to change it, and was a bit weird to me as well, but I assumed these were like that for a reason.
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 agree with tarteo... look at Odoo: https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/security/ir.model.access.csv#L85
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.
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.
Yeah, the main difference is the group :) ... No Group = All users can do the operations.
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.
@Tardo, aaaah I missed that
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.
so, do you want me to add the group like in base Odoo? Maybe on all three modules?
Edit: done
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.
Yes, i think that this change should be made on all modules. Thanks!
Add or fix access rights for actions, like in base Odoo
f3c6da9
to
f40dd6f
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.
LGTM, thanks!
This PR has the |
@OCA/web-maintainers |
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
@hbrunn The merge process could not be finalized, because command
|
Congratulations, your PR was merged at 1e67c14. Thanks a lot for contributing to OCA. ❤️ |
Squashes the warning