Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
6823 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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"
/>



Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

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


Thanks

Awatar
Odrzuć
Autor

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.