clinic/netforce_clinic/models/patient_categ.py

13 lines
313 B
Python

from netforce.model import Model, fields
class PatientCateg(Model):
_name="clinic.patient.categ"
_string="Patient Category"
_fields={
"name": fields.Char("Name",required=True,search=True),
"parent_id": fields.Many2One('clinic.patient.categ',"Parent"),
}
PatientCateg.register()