Skip to Content
Menu
This question has been flagged
3 Replies
5766 Views

I am looking for a way to set up a default opening screen for a specific user. For example when you open the Time Off application have it open to the Managers "To Approve" menu which would be default for the managers.

Avatar
Discard
Best Answer

Add all your default menus at the top of your module's menu. Order them from the menu with highest access rights (manager menu) to the one with the lowest right. Add a groups tag to each record to limit access. When a manager logs in your default menu entry will be at the top and that is what he will see. When a user logs in that entry won't be available so they will see the one below it. To order the menu items use the sequence attribute. 

<menuitem id="manager_default"
    name="Default Menu for manager"
    parent="YourParent"
    action="YourAction"
    sequence="4"
    groups="YourModule.ManagerGroup"
/>
<menuitem id="user_default"
    name="Default Menu for user"
    parent="YourParent"
    action="YourAction"
    sequence="5"
    groups="YourModule.UserGroup"
/>



Avatar
Discard
Best Answer

Hi,

Set home action for the users from the users form view, See:- Set Default Action For Users Using Home Action In Odoo


Thanks

Avatar
Discard
Author

Thank you Niyas this does accomplish setting it up upon log in however what I am looking for is once you open the application itself.