Odoo How to hide edit button based on User Group?
Thanks for your answer, it really helped me.
But when i remove edit/create button for some group (ex: Purchase: User), also the edit/create buttons got removed for the higher groups (ex: Purchase: Manager) of the specified group (ex: Purchase: User).
My case:
I've removed edit button for Purhcase: User group, and I see the edit button got removed also for the Purchase: Manager group.
The solution I tried:
I have created one more view for Purchase: Manager group and given edit TRUE. So I've created two views for two groups
Looking for better solution to achieve this scenario with single view, as it isn't good to create many views for many groups.
I want to hide edit button based on user group. However I don't want to edit ir.model.access.csv, because some process in my system flow must be able some user group to write the model by code.
Are there some way to hide edit button from some group of user ?