2014-11-14 01:58:12 +00:00
|
|
|
from netforce.model import Model, fields
|
|
|
|
|
|
|
|
class LoadNurseLine(Model):
|
|
|
|
_name="clinic.schedule.load.nurse.line"
|
|
|
|
_transient=True
|
|
|
|
|
|
|
|
_fields={
|
|
|
|
"load_id": fields.Many2One("clinic.schedule.load.nurse","Load Nurse",required=True,on_delete="cascade"),
|
2014-11-25 11:39:53 +00:00
|
|
|
'nurse_id': fields.Many2One("clinic.staff","Nurse",domain=[['type','=','nurse']]),
|
2014-11-14 01:58:12 +00:00
|
|
|
'cycle_id': fields.Many2One("clinic.cycle", "Cycle"),
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LoadNurseLine.register()
|
|
|
|
|