clinic/netforce_clinic/models/personal_categ.py

13 lines
324 B
Python

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