Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
6828 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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.