跳至內容
選單
此問題已被標幟
1 回覆
1285 瀏覽次數

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 .

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 25
1888
3
7月 25
3492
1
5月 25
1620
1
5月 25
1870
4
5月 25
2988