clinic/netforce_clinic/models/cycle_item_line.py

15 lines
500 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"),
2014-10-26 08:48:51 +00:00
}
CycleItemLine.register()