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

I am working on user restriction to disallow user to update quantity on hand, can you tell me what will be the record rules to hide the button on the product creation form based on the user?

Avatar
Discard
Best Answer

Hi,

You can hide the buttons or field using adding the groups attribute to it. So that the button/field will be visible only for the users inside the given group.

See the example:

<button icon="fa-refresh"
string="Update Theme"
type="object"
groups="base.group_no_one"
class="oe_inline oe_read_only ml8"
name="multi_reload"/>

the above button will be only visible for the users inside the group base.group_no_one.

For more, see :- https://www.youtube.com/watch?v=3JsCu8_Dj3I

Thanks

Avatar
Discard
Author

thanks, that worked