clinic/netforce_clinic/models/visit_popup_confirm_line.py

21 lines
764 B
Python
Raw Normal View History

2015-01-21 08:29:14 +00:00
from netforce.model import Model, fields
class VisitPopupConfirmLine(Model):
_name="clinic.popup.visit.confirm.line"
_transient=True
_fields={
"popup_visit_id": fields.Many2One("clinic.popup.visit.confirm","Popup Board",required=True,on_delete="cascade"),
2015-03-02 04:03:07 +00:00
'patient_id': fields.Many2One("clinic.patient","Patient",domain=[['state','=','admit']]),
2015-01-21 08:29:14 +00:00
'department_id': fields.Many2One("clinic.department","Department"),
'cycle_id': fields.Many2One("clinic.cycle","Cycle"),
'visit_id': fields.Many2One("clinic.visit","Visit"),
2015-05-06 08:09:27 +00:00
'doctor_id': fields.Many2One("clinic.staff","Doctor",domain=[['type','=','doctor']]),
2015-01-21 08:29:14 +00:00
}
_defaults={
'is_confirm': False,
}
VisitPopupConfirmLine.register()