This question has been flagged
1 Reply
2648 Views

Hi.

   I want to hide menu HUMAN RESOURCES using groups but it didn't work. any advice please i really need help..

security xml:

 <record id="biz1_ei.group_hidden" model="res.groups">
                <field name="name">Hidden</field>
            </record>
           

 

here's my code in xml:

<menuitem name="Human Resources"
            id="hr.menu_hr_root"
            groups="biz1_ei.group_hidden"
            sequence="1"/>
        <menuitem id="menu_hr_main" parent="hr.menu_hr_root" name="Human Resources" sequence="0" groups="biz1_ei.group_hidden"/>

Avatar
Discard

For the group "biz1_ei.group_hidden" make sure you haven't given any Object permission..

Author

what object permission??

Did you managed to do it?

Best Answer

id="menu_hr_main" -> id="hr.menu_hr_main"

and if your current module is biz1_ei and want to create new group "group_hidden", then name of the module is not necessarily.

id="biz1_ei.group_hidden" -> id="group_hidden"

Avatar
Discard