clinic/netforce_clinic/models/new_patient_line.py

21 lines
583 B
Python
Raw Normal View History

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"),
'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()