Skip to Content
Menu
This question has been flagged
1 Reply
2499 Views

I have Maintenance app installed and I need to restrict Internal Users from changing request stage. They should still be able to add requests, add comments and mark request as "Ready for the next stage".

How do I do this?
Odoo v12

Avatar
Discard
Best Answer

Hi,

If the user is changing the state by clicking some buttons, you can make those buttons hidden for normal users. Once those buttons are kept hidden user won't be able to change the state.


You can use groups attribute along with the button and add the which group of users should view the button. You can give manager users group ID inside the groups tag, so the button will be visible for managers and user level users won't see the button.


Thanks

Avatar
Discard
Author

User can change stage by drag and drop action in kanban view as well as set of buttons in the top right corner. How do I restrict that?

You can override the write method and based on user group you can restrict it. For overriding/supering the write methods you can check the net, you can get the samples

Author

I managed to deny user from writing but then they also lose access to everything else like marking request ready for the next stage.