want to create a filter with employee Name that fetch record related to currently logged user
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
2
Respuestas
7198
Vistas
Hi,
There is a lot of samples of the same in Odoo code itself.
See one among them,
<filter string="My Requests" name="my_requests"
domain="['|', ('employee_id.user_id', '=', uid), ('department_id.manager_id.user_id', '=', uid)]"/>
In the uid you will get the id of the logged in user, by which you can compare the field in the record.
Thanks
it works .. mean show only logged users record but when I'm click on record it gives an error:
Odoo Server Error - Access Error
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: hr.employee, Operation: read)
due to hr_org_chart app, it works properly by uninstalling hr_org_chart app. But we need this app also.
(Document type: hr.employee, Operation: read)
due to hr_org_chart app, it works properly by uninstalling hr_org_chart app. But we need this app also.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
nov 18
|
2964 | ||
|
1
jun 25
|
11033 | ||
|
2
nov 23
|
3198 | ||
|
2
abr 24
|
2925 | ||
|
7
abr 21
|
20610 |