clinic/netforce_clinic/models/load_nurse_line.py

16 lines
456 B
Python
Raw Normal View History

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"),
'nurse_id': fields.Many2One("clinic.personal","Nurse",domain=[['type','=','nurse']]),
'cycle_id': fields.Many2One("clinic.cycle", "Cycle"),
}
LoadNurseLine.register()