xxxx
parent
6e547eae65
commit
43b385797f
|
@ -69,7 +69,7 @@ class ReportVisit(Model):
|
||||||
records=get_model('clinic.visit').search_browse(dom)
|
records=get_model('clinic.visit').search_browse(dom)
|
||||||
lines=[]
|
lines=[]
|
||||||
no=1
|
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({
|
lines.append({
|
||||||
'no': no,
|
'no': no,
|
||||||
'vid': record.id,
|
'vid': record.id,
|
||||||
|
|
Loading…
Reference in New Issue