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
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
3
Feb. 25
|
3262 | ||
|
0
Mai 24
|
46 | ||
|
1
Apr. 24
|
3207 | ||
|
4
Sept. 23
|
4686 | ||
|
2
Sept. 23
|
6903 |