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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
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
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
3
feb 25
|
3019 | ||
|
0
mag 24
|
46 | ||
|
1
apr 24
|
3117 | ||
|
4
set 23
|
4551 | ||
|
2
set 23
|
6782 |