xxxx
parent
6e547eae65
commit
43b385797f
|
@ -69,7 +69,7 @@ class ReportVisit(Model):
|
|||
records=get_model('clinic.visit').search_browse(dom)
|
||||
lines=[]
|
||||
no=1
|
||||
for record in sorted(records,key=lambda x: (x.patient_id.id,x.visit_date)):
|
||||
for record in sorted(records,key=lambda x: (x.patient_id.name or "",x.visit_date)):
|
||||
lines.append({
|
||||
'no': no,
|
||||
'vid': record.id,
|
||||
|
|
Loading…
Reference in New Issue