import time from netforce.model import Model, fields class PatientSchedule(Model): _name="clinic.patient.schedule" _string="Patient Schedule" _fields={ "patient_id": fields.Many2One("clinic.patient","Patient",required=True,on_delete="cascade"), } _defaults={ } PatientSchedule.register()