Help

How assign groups to button?

Closed
Avatar
Vasiliy Birukov

The question has been closed

by
Vasiliy Birukov
on 03/27/2013 09:10:41

Is it possible restrict access to button for some groups?

2 Comments
Avatar
Discard
Avatar
Vasiliy Birukov
-

Need add name of module before group. <button name="name" groups="mrp.group_mrp_user"/>. Without name it don't work, even if the group define in the same module.

Avatar
Rafael Reuber
-

Thanks a lot wowas!

1 Answer
0
Avatar
Lucio
Best Answer

In the definition of the button, in the .xml, you can add this:

<button string="Label" name="fnct_to_call" (...) groups="name_of_the_group"/>

Is this what you want?

Avatar
Discard