2014-10-14 13:48:14 +00:00
|
|
|
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"),
|
2014-11-01 03:48:22 +00:00
|
|
|
'nurse_id': fields.Many2One("clinic.personal","Nurse", domain=[['type','=','nurse']]),
|
2014-10-14 13:48:14 +00:00
|
|
|
}
|
|
|
|
|
2014-11-01 03:48:22 +00:00
|
|
|
|
2014-10-14 13:48:14 +00:00
|
|
|
GenVisitLine.register()
|
|
|
|
|