Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1377 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Okt 25
2595
1
Sep 25
2591
3
Jul 25
4034
1
Mei 25
2139
4
Mei 25
3473