clinic/netforce_clinic/models/patient_categ.py

14 lines
350 B
Python
Raw Normal View History

2014-11-01 08:49:27 +00:00
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),
2014-11-02 01:26:42 +00:00
"parent_id": fields.Many2One('clinic.patient.categ',"Parent"),
2014-11-26 01:39:49 +00:00
'note': fields.Text("Note"),
2014-11-01 08:49:27 +00:00
}
PatientCateg.register()