clinic/netforce_clinic/models/new_patient_line.py

18 lines
395 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"),
}
_defaults={
}
NewPatientLine.register()