Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2497 Vizualizări

i inherit hr.employee module in my custom module. i want when user login it only show his profile page not other. how can i in odoo python ?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi

You can easily achieve this by adding a domain into the action, just follow the code given below,

<?xml version="1.0" encoding="UTF-8" ?>

<!--TO VIEW THE RECORD OF LOGGED USER-->

<odoo>

<data>

<record id="my_logs_action" model="ir.actions.act_window">

<field name="name">My Model</field>

<field name="type">ir.actions.act_window</field>

<field name="res_model">hr.employee</field>

<field name="view_mode">kanban,tree,form</field>

<field name="domain">[('user_id','=',uid)]</field>

</record>

</data>

</odoo>

Hope it helps

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
feb. 25
3421
0
mai 24
46
1
apr. 24
3298
4
sept. 23
4780
2
sept. 23
6988