clinic/netforce_clinic/models/schedule.py

14 lines
303 B
Python
Raw Normal View History

2014-10-07 13:22:18 +00:00
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()