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-01 08:49:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PatientCateg.register()
|