Doctor Allocation Rule Doctor [('doctor_id.user_id','=',user.id)] Doctor Allocation Rule Manager [(1,'=',1)] Doctor Allocation Rule Company ['|',('company_id','=',False),('company_id', 'in', company_ids)]