Skip to Content
Menu
This question has been flagged
2 Replies
841 Views

hello everyone 

i make one appointment module 

in this module i add doctor_id field and i alredy set master for doctor 


i want if any doctor appointment fixed in some time then not create other appointment for this doctor same time

how can i do this ?


thank you in advance

Avatar
Discard
Author Best Answer

this is work only if add exactly same value like if one doctor appointment is book between 10:00 to 11:00

and if add 10:00 to 11:00 then work but if i add 10:05 then its not work 


i want not able to book in 10:00 to 11:00 time 

i think you are understand.


Avatar
Discard
Best Answer

Hi  Ra_one_1_11,

You can use 'constraints' to achieve this.

Refer https://www.cybrosys.com/blog/python-model-constraints-odoo-13


Hope it Helps,
Kiran K


Avatar
Discard
Related Posts Replies Views Activity
1
Dec 23
995
2
Aug 23
928
1
Dec 23
2065
1
Jul 23
1518
0
May 23
1282