This question has been flagged
1 Reply
3493 Views

we inherited a fleet module ,we want to hide/disable Vehicle Cost,Vehicel Service Logs,menu actions

Avatar
Discard
Best Answer

Hi,

You can follow like below to hide the menu:

<record id="group_with_no_access" model="res.groups">
    <field name="name">Group - No user</field>
</record>
<record id="fleet.fleet_vehicle_costs_menu" model="ir.ui.menu">
    <field name="groups_id" eval="[(3, ref('fleet.group_fleet_manager'))]"/>
</record>
<menuitem action="fleet.fleet_vehicle_costs_act" parent="fleet.fleet_vehicles" id="fleet.fleet_vehicle_costs_menu"

groups="group_with_no_access"/>

This will hide Vehicle Cost menu. You can do the same for other menu.

Avatar
Discard