2017-06-09 20:07:54 +00:00
|
|
|
from netforce.model import Model, fields
|
|
|
|
|
|
|
|
class NewPatientLine(Model):
|
|
|
|
_name="new.patient.line"
|
|
|
|
_transient=True
|
|
|
|
|
|
|
|
_fields={
|
|
|
|
'new_id': fields.Many2One("new.patient","New", required=True, on_delete="cascade"),
|
|
|
|
"choose": fields.Boolean("Choose"),
|
|
|
|
"patient_id": fields.Many2One("clinic.patient","Patient"),
|
2017-06-11 17:35:26 +00:00
|
|
|
'patient_name': fields.Char("Patient Name"),
|
|
|
|
'department_id': fields.Many2One("clinic.department","Department"),
|
|
|
|
'department_name': fields.Char("Department Name"),
|
2017-06-09 20:07:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
_defaults={
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
NewPatientLine.register()
|