clinic/netforce_clinic/models/cycle_item_line.py

17 lines
719 B
Python
Raw Normal View History

from netforce.model import Model, fields
2014-10-26 08:48:51 +00:00
class CycleItemLine(Model):
_name="clinic.cycle.item.line"
_string="Cycle Item Nurse"
2014-10-26 08:48:51 +00:00
_fields={
'cycle_item_id': fields.Many2One("clinic.cycle.item", "Cycle Item"),
'level_id': fields.Many2One("clinic.staff.level", "Level",),
'nurse_id': fields.Many2One("clinic.staff",'Nurse',domain=[['type','=','nurse']]),
2015-01-18 10:31:54 +00:00
'department_id': fields.Many2One("clinic.department","Department"),
2015-01-22 07:20:04 +00:00
"state": fields.Selection([["part_time","Part Time"],["full_time","Full Time"]],"Working Status",search=True),
2015-02-08 08:48:08 +00:00
'categ_id': fields.Many2One("clinic.staff.categ",'Category',domain=[['type','=','nurse']]),
2014-10-26 08:48:51 +00:00
}
CycleItemLine.register()