Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
1286 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jun. 25
1892
3
jul. 25
3496
1
mai. 25
1621
1
mai. 25
1874
4
mai. 25
2989