Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1304 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
zář 25
2066
1
čvn 25
2098
3
čvc 25
3691
1
kvě 25
1805
4
kvě 25
3116