Skip to Content
Menú
This question has been flagged
1 Respondre
1280 Vistes

hello everyone 

i make one module the hospital management in odoo 15 

in this module i can add doctor patient i book apointment for doctor .


now i want if any doctor is login then saw only this doctor appointment in calandar .

and second login hospital management so they can see all of this apointment .

Avatar
Descartar
Best Answer

Hi  Ra_one_1_11,

You can achieve this by creating record rules,


Doctor: Own Records Only

[('doctor_user_field','=',user.id)]


Manager: All Records

[(1,'=',1)]

Refer https://odootricks.tips/about/building-blocks/security/record-rules/



Hope it helps,

Kiran K

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 25
1870
3
de jul. 25
3480
1
de maig 25
1605
1
de maig 25
1850
4
de maig 25
2961