2015-01-17 13:34:00 +00:00
|
|
|
from netforce.model import Model, fields
|
2014-10-26 08:48:51 +00:00
|
|
|
|
|
|
|
class CycleItemLine(Model):
|
|
|
|
_name="clinic.cycle.item.line"
|
2015-01-17 13:34:00 +00:00
|
|
|
_string="Cycle Item Nurse"
|
2014-10-26 08:48:51 +00:00
|
|
|
|
|
|
|
_fields={
|
2015-01-17 13:34:00 +00:00
|
|
|
'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"),
|
2014-10-26 08:48:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CycleItemLine.register()
|