2014-10-26 15:17:56 +00:00
|
|
|
from netforce.model import Model, fields
|
|
|
|
|
2014-11-02 01:26:42 +00:00
|
|
|
class PersonalCategory(Model):
|
2014-10-26 15:17:56 +00:00
|
|
|
_name="clinic.personal.categ"
|
|
|
|
_string="Personal Category"
|
|
|
|
|
|
|
|
_fields={
|
|
|
|
"name": fields.Char("Name",required=True,search=True),
|
2014-11-02 02:13:15 +00:00
|
|
|
"type": fields.Selection([("doctor","Doctor"),("nurse","Nurse"),('other','Other')],"Type"),
|
2014-11-02 01:26:42 +00:00
|
|
|
'parent_id': fields.Many2One("clinic.personal.categ","Parent"),
|
2014-10-26 15:17:56 +00:00
|
|
|
}
|
|
|
|
|
2014-11-02 01:26:42 +00:00
|
|
|
PersonalCategory.register()
|