14 lines
350 B
Python
14 lines
350 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"),
|
|
'note': fields.Text("Note"),
|
|
}
|
|
|
|
PatientCateg.register()
|