|
from netforce.model import Model, fields
|
|
|
|
class Schedule(Model):
|
|
_name="clinic.schedule"
|
|
_string="Schedule"
|
|
_fields={
|
|
'name': fields.Char("Name"),
|
|
'code': fields.Char("Code"),
|
|
'patients': fields.Many2Many("clinic.patient","Patients"),
|
|
}
|
|
|
|
|
|
Schedule.register()
|