-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[14.0][FIX] sale_order_line_input: access to action views #3314
base: 14.0
Are you sure you want to change the base?
Conversation
bfec49c
to
ad34b52
Compare
@@ -0,0 +1,5 @@ | |||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | |||
access_window_action_form_user,access_window_action_form_user,base.model_ir_actions_act_window,sale_order_line_input.group_sale_order_access,1,0,0,0 |
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.
@toita86 You cannot do that as it will give you access to the whole model.
The problem is here: https://github.com/OCA/sale-workflow/blob/14.0/sale_order_line_input/models/sale_order.py#L57
You should change the code to retrieve the action through for_xml_id
function. Look into core code.
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.
Thank you for the explanation!
I have changed my approach based on your suggestion, now should be correct.
eca05ee
to
c5ab95f
Compare
c5ab95f
to
de3853d
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.
code
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.
Functional ok!
@rousseldenis what do you say?
Previously of this fix when a user with access to all the SO tries to access one of them through the "Open Order" widget there will produce an error: