clinic/netforce_clinic/models/new_patient_line.py

18 lines
395 B
Python

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()