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()