clinic/netforce_clinic/models/gen_visit_line.py

16 lines
424 B
Python

from netforce.model import Model, fields, get_model
class GenVisitLine(Model):
_name="clinic.gen.visit.line"
_transient=True
_fields={
'gen_id': fields.Many2One("clinic.gen.visit","gen_id","Gen Visit"),
'patient_id': fields.Many2One("clinic.patient","Patient"),
'nurse_id': fields.Many2One("clinic.personal","Nurse", domain=[['type','=','nurse']]),
}
GenVisitLine.register()